1 #ifndef _JED_CONFIG_H_ 2 #define _JED_CONFIG_H_ 3 /* Copyright (c) 1992, 1998, 2000, 2005, 2006 John E. Davis 4 * This file is part of JED editor library source. 5 * 6 * You may distribute this file under the terms the GNU General Public 7 * License. See the file COPYING for more information. 8 */ 9 10 /* This file handles all non-Unix Operating systems */ 11 12 #ifdef __VMS 13 #include "vms_x_fix.h" 14 #endif 15 16 #if defined(__WATCOMC__) && defined(__DOS__) 17 # define DOS386 1 18 #endif 19 20 /* Set of the various defines for pc systems. This includes OS/2 */ 21 22 #ifdef __GO32__ 23 # ifndef __DJGPP__ 24 # define __DJGPP__ 1 25 # endif 26 #endif 27 28 #if defined(__MSDOS__) || defined(__DOS__) || defined(__WIN16__) 29 # ifndef __MSDOS__ 30 # define __MSDOS__ 31 # endif 32 #endif 33 34 #if defined(OS2) 35 # ifndef __os2__ 36 # define __os2__ 1 37 # endif 38 #endif 39 40 #if defined(CYGWIN32) && !defined(__CYGWIN32__) 41 # define __CYGWIN32__ 42 #endif 43 44 #if defined(MINGW32) && !defined(__MINGW32__) 45 # define __MINGW32__ 1 46 #endif 47 48 #if defined(WIN32) || defined(__CYGWIN32__) || defined(__MINGW32__) 49 # ifndef __WIN32__ 50 # define __WIN32__ 1 51 # endif 52 #endif 53 54 #if defined(__WIN32__) || defined(__WIN16__) 55 # if !defined(MSWINDOWS) 56 # define MSWINDOWS 1 57 # endif 58 #endif 59 60 #ifndef VMS 61 # ifndef IBMPC_SYSTEM 62 # define IBMPC_SYSTEM 1 63 # endif 64 #endif 65 66 #if defined(__MSDOS__) && !defined(__GO32__) && !defined(DOS386) && !defined(__WIN32__) 67 # ifndef __MSDOS_16BIT__ 68 # define __MSDOS_16BIT__ 1 69 # endif 70 # if defined(__BORLANDC__) && !defined(IBMPC_USE_ASM) 71 # define IBMPC_USE_ASM 72 # endif 73 #endif 74 75 #if defined(__os2_16__) || defined(__MSDOS_16BIT__) 76 # define SIXTEEN_BIT_SYSTEM 77 #endif 78 79 #ifdef IBMPC_SYSTEM 80 # define HAVE_STDLIB_H 81 # define HAVE_PUTENV 82 # if defined(__GO32__) || defined(__CYGWIN32__) 83 # define HAVE_UNISTD_H 84 # endif 85 #endif 86 87 #if !defined(VMS) && !defined(__WATCOMC__) 88 # define HAVE_MEMORY_H 89 #endif 90 91 #if defined(__WIN32__) && defined(__BORLANDC__) 92 # define HAVE_UTIME 1 93 #endif 94 95 #define HAVE_GETCWD 96 97 #if defined(_MSC_VER) || defined(__EMX__) || defined(__WATCOMC__) 98 # define strcmpi stricmp 99 # define strncmpi strnicmp 100 #endif 101 102 #define HAVE_MEMCPY 103 #define HAVE_MEMSET 104 #ifndef VMS 105 # define HAVE_MEMCMP 106 # define HAVE_MEMCHR 107 #endif 108 109 /* OS/2 probably has gethostname */ 110 #undef HAVE_GETHOSTNAME 111 112 #if !defined(__WATCOMC__) || defined(OS2) 113 # define HAS_MOUSE 1 114 #endif 115 116 #if defined(__DECC) 117 # define HAVE_STDLIB_H 118 # define HAVE_UNISTD_H 119 #else 120 # ifdef VMS 121 # if __VMS_VER >= 60200000 122 # define HAVE_UNISTD_H 123 # endif 124 # endif 125 #endif 126 127 /* Define this if compiler has limits.h */ 128 #define HAVE_LIMITS_H 129 130 /* Set this to 1 if the filesystem is case-sensitive */ 131 #define JED_FILE_PRESERVE_CASE 0 132 133 /* Define if you have the vsnprintf, snprintf functions and they return 134 * EOF upon failure. 135 */ 136 #undef HAVE_VSNPRINTF 137 #undef HAVE_SNPRINTF 138 139 /* #define mode_t int */ 140 /* #define pid_t int */ 141 typedef int uid_t; 142 typedef int gid_t; 143 144 #ifdef _MSC_VER 145 # define HAVE_DLOPEN 1 146 #endif 147 148 /* Finally, a reality check... */ 149 #ifdef REAL_UNIX_SYSTEM 150 # undef REAL_UNIX_SYSTEM 151 #endif 152 153 #ifndef JED 154 # define JED 155 #endif 156 157 #endif /* _JED_CONFIG_H_ */ 158