00001 /* 00002 $Header: /home/cvsuser/cvsroot/JSOC/proj/mag/synop/apps/local.h,v 1.1 2014/02/11 18:30:19 arta Exp $ 00003 $Log: local.h,v $ 00004 Revision 1.1 2014/02/11 18:30:19 arta 00005 Finish removing dependencies on Yangs home directory. Added several headers needed for the synop project, but that resided in Yangs myproj directory. 00006 00007 * Revision 1.3 90/12/18 16:51:07 phil 00008 * _ to __ 00009 * 00010 * Revision 1.2 90/12/18 16:40:04 phil 00011 * ANSI symbol removed. 00012 * 00013 * Revision 1.1 90/12/18 15:49:49 phil 00014 * Initial revision 00015 * 00016 */ 00017 00018 #ifndef _LOCAL_INCLUDED 00019 #define _LOCAL_INCLUDED 00020 00021 /******************************************************************** 00022 00023 The following macro symbols are predefined by the compilers: 00024 On Banneker and other vax ultrix 3.x systems: 00025 00026 unix Any UNIX system 00027 bsd4_2 Berkeley UNIX Version 4.2 00028 ultrix ULTRIX only 00029 vax VAX only (as opposed to PDP-11) 00030 sparc SUN sparc processor 00031 00032 On Quake and other mips ultrix 4.x systems: 00033 00034 unix Any UNIX system 00035 bsd4_2 Berkeley UNIX Version 4.2 00036 ultrix ULTRIX only 00037 mips Any MIPS architecture 00038 MIPSEL Little endian variant of MIPS architecture 00039 host_mips Native compilation environment (as opposed to 00040 cross-compiler) 00041 00042 On mips big endian machines: 00043 00044 MIPSEB Big endian - e.g. sgi 00045 00046 On the NeXT: 00047 00048 NeXT The NeXT machine 00049 unix 00050 BSD 00051 mc68000 00052 00053 On the system V 386 machines: 00054 00055 i386 intel 80386 machine 00056 00057 On the sgi irix machines: 00058 00059 __sgi sgi machines 00060 00061 On the Sun sparc machines: 00062 00063 __sun 00064 __sparc 00065 00066 On ANSI standard C: 00067 00068 __FILE__ text file name - char* 00069 __LINE__ line number - int 00070 __DATE__ compile date - char* 00071 __TIME__ compile time - char* 00072 __STDC__ ANSI standard C 00073 00074 ********************************************************************/ 00075 00076 #ifndef MACHINE 00077 00078 #ifdef MIPSEL 00079 #define MACHINE mipsel 00080 #define MACHINE_TXT "mipsel" 00081 #endif 00082 #ifdef MIPSEB 00083 #define MACHINE mipseb 00084 #define MACHINE_TXT "mipseb" 00085 #endif 00086 #ifdef vax 00087 #define MACHINE vax 00088 #define MACHINE_TXT "vax" 00089 #endif 00090 #ifdef NeXT 00091 #define MACHINE next 00092 #define MACHINE_TXT "next" 00093 #endif 00094 #ifdef i386 00095 #define MACHINE i386 00096 #define MACHINE_TXT "i386" 00097 #endif 00098 #ifdef __sparc 00099 #define MIPSEB 00100 #define MACHINE mipseb 00101 #define MACHINE_TXT "sparc" 00102 #endif 00103 #ifndef MACHINE 00104 #define MACHINE unknown 00105 #define MACHINE_TXT "unknown" 00106 #endif 00107 00108 #endif 00109 00110 #ifndef MACHINE_TXT 00111 #define LITERAL_STRING(X) # X 00112 #define MACHINE_TXT LITERAL_STRING(MACHINE) 00113 #endif 00114 00115 #endif