e_msft.h

Go to the documentation of this file.
00001 /*
00002  *   Configures Jam for Microsoft environment.
00003  */
00004 # ifndef E_MSOFT_H
00005 # define E_MSOFT_H
00006 
00007 /*
00008  * MS-DOS
00009  */
00010 #if defined( MSDOS )
00011 #   define OS_MSDOS
00012 #   define OSMAJOR    "MSDOS=true"
00013 #   define OSMINOR    "OS=MSDOS"
00014 #   define SPLITPATH  ';'
00015 #   define MAXLINE    127    /* command line length, supported by $(JAMSHELL) */
00016 #   define USE_EXECWIN
00017 #   define USE_PATHDOS
00018 #endif
00019 
00020 
00021 /*
00022  * Windows95
00023  */
00024 #if defined( WIN95 )
00025 #   define OS_WIN95
00026 #   define OSMAJOR    "WIN95=true"
00027 #   define OSMINOR    "OS=WIN95"
00028 #   define SPLITPATH  ';'
00029 #   define MAXLINE    996    /* command line length, supported by $(JAMSHELL) */
00030 #   define USE_EXECWIN
00031 #   define USE_PATHWIN
00032 #endif
00033 
00034 
00035 
00036 /*
00037  * Windows98
00038  */
00039 #if defined( WIN98 )
00040 #   define OS_WIN98
00041 #   define OSMAJOR    "WIN98=true"
00042 #   define OSMINOR    "OS=WIN98"
00043 #   define SPLITPATH  ';'
00044 #   define MAXLINE    996    /* command line length, supported by $(JAMSHELL) */
00045 #   define USE_EXECWIN
00046 #   define USE_PATHWIN
00047 #endif
00048 
00049 
00050 
00051 /*
00052  * WindowsME
00053  */
00054 #if defined( WINME )
00055 #   define OS_WINME
00056 #   define OSMAJOR    "WINME=true"
00057 #   define OSMINOR    "OS=WINME"
00058 #   define SPLITPATH  ';'
00059 #   define MAXLINE    996    /* command line length, supported by $(JAMSHELL) */
00060 #   define USE_EXECWIN
00061 #   define USE_PATHWIN
00062 #endif
00063 
00064 
00065 
00066 /*
00067  * Windows NT
00068  */
00069 #if defined( NT )
00070 #   define OS_NT
00071 #   define OSMAJOR    "NT=true"
00072 #   define OSMINOR    "OS=NT"
00073 #   define SPLITPATH  ';'
00074 #   define MAXLINE    996    /* command line length, supported by $(JAMSHELL) */
00075 #   define USE_EXECUNIX
00076 #   define USE_PATHWIN
00077     /* AS400 cross-compile from NT */
00078 #   if defined( AS400 )
00079 #       undef OSMINOR
00080 #       undef OSMAJOR
00081 #       define OSMAJOR    "AS400=true"
00082 #       define OSMINOR    "OS=AS400"
00083 #       define OS_AS400
00084 #   endif
00085 
00086 #endif
00087 
00088 
00089 
00090 /*
00091  * Windows MingW32
00092  */
00093 #if defined( MINGW )
00094 #   define OS_NT
00095 #   define OSMAJOR    "MINGW=true"
00096 #   define OSMINOR    "OS=MINGW"
00097 #   define SPLITPATH  ';'
00098 #   define MAXLINE    996    /* command line length, supported by $(JAMSHELL) */
00099 #   define USE_EXECUNIX
00100 #   define USE_PATHUNIX
00101 #endif
00102 
00103 /* All windows include theese: Put this elsewhere */
00104 #include <fcntl.h>
00105 #include <stdlib.h>
00106 #include <stdio.h>
00107 #include <ctype.h>
00108 #include <malloc.h>
00109 #include <memory.h>
00110 #include <signal.h>
00111 #include <string.h>
00112 #include <time.h>
00113 
00114 
00115 
00116 
00117 #define TOLOWER_PATH
00118 #define PATH_DELIM '\\'
00119 
00120 //# if __BORLANDC__ < 0x550
00121 
00122 #if defined( __BORLANDC__ )
00123 #   if __BORLANDC__ < 0x550
00124 #       define HAVE_DIR_H   1
00125 #   endif
00126 #   define HAVE_DIRENT_H    1
00127 #   define HAVE_FINDFIRST   1
00128 
00129 #elif defined (_MSC_VER)
00130 #   define HAVE__FINDFIRST  1
00131 #   define HAVE_DIRECT_H    1
00132 #   if _MSC_VER >= 1300
00133 #       define findfirst_t intptr_t  /* Visual Studio 7 */
00134 #   else
00135 #       define findfirst_t long      /* Visual Studio 6 or earlier */
00136 #   endif
00137 
00138 #elif defined (__MINGW32__)
00139 #   include <_mingw.h>
00140 #   if defined (__MSVCRT__) && __MINGW32_MAJOR_VERSION == 1 && __MINGW32_MINOR_VERSION < 2
00141 #       undef HAVE_FGETPOS      /* broken fgetpos()/fsetpos() on Mingw32 */
00142 #       define NEED_PROTO_FGETPOS 1
00143 #   endif
00144 #   define HAVE_DIR_H       1
00145 #   define HAVE_DIRENT_H    1
00146 #   define HAVE__FINDFIRST  1
00147 #   define FA_DIREC _A_SUBDIR
00148 #   define ffblk _finddata_t
00149 #   define ff_name name
00150 
00151 #elif defined( __DJGPP__)
00152 #   define HAVE_DIR         1
00153 #   define HAVE_WAIT        <sys/wait.h>
00154 #   define HAVE_UNISTD      1
00155 #   define HAVE_FINDFIRST   1
00156 #endif
00157 
00158 #endif  /* E_MSOFT_H */

Generated on Thu Aug 17 15:54:32 2006 for MaJam by  doxygen 1.4.7