1 #ifndef _JED_CONFIG_H_ 2 #define _JED_CONFIG_H_ 3 /* Copyright (c) 1992, 1998 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 13 #if defined(__WATCOMC__) && defined(__DOS__) 14 # define DOS386 1 15 #endif 16 17 /* Set of the various defines for pc systems. This includes OS/2 */ 18 19 #ifdef __GO32__ 20 # ifndef __DJGPP__ 21 # define __DJGPP__ 1 22 # endif 23 #endif 24 25 #if defined(__MSDOS__) || defined(__DOS__) || defined(__WIN16__) 26 # ifndef __MSDOS__ 27 # define __MSDOS__ 28 # endif 29 #endif 30 31 #if defined(OS2) 32 # ifndef __os2__ 33 # define __os2__ 1 34 # endif 35 #endif 36 37 #if defined(CYGWIN32) && !defined(__CYGWIN32__) 38 # define __CYGWIN32__ 39 #endif 40 41 #if defined(MINGW32) && !defined(__MINGW32__) 42 # define __MINGW32__ 1 43 #endif 44 45 #if defined(WIN32) || defined(__CYGWIN32__) || defined(__MINGW32__) 46 # ifndef __WIN32__ 47 # define __WIN32__ 1 48 # endif 49 #endif 50 51 #if defined(__WIN32__) || defined(__WIN16__) 52 # if !defined(MSWINDOWS) 53 # define MSWINDOWS 1 54 # endif 55 #endif 56 57 #ifndef VMS 58 # ifndef IBMPC_SYSTEM 59 # define IBMPC_SYSTEM 1 60 # endif 61 #endif 62 63 #if defined(__MSDOS__) && !defined(__GO32__) && !defined(DOS386) && !defined(__WIN32__) 64 # ifndef __MSDOS_16BIT__ 65 # define __MSDOS_16BIT__ 1 66 # endif 67 # if defined(__BORLANDC__) && !defined(IBMPC_USE_ASM) 68 # define IBMPC_USE_ASM 69 # endif 70 #endif 71 72 #if defined(__os2_16__) || defined(__MSDOS_16BIT__) 73 # define SIXTEEN_BIT_SYSTEM 74 #endif 75 76 #ifdef IBMPC_SYSTEM 77 # define HAVE_STDLIB_H 78 # define HAVE_PUTENV 79 # if defined(__GO32__) || defined(__CYGWIN32__) 80 # define HAVE_UNISTD_H 81 # endif 82 #endif 83 84 #if !defined(VMS) && !defined(__WATCOMC__) 85 # define HAVE_MEMORY_H 86 #endif 87 88 #if defined(__WIN32__) && defined(__BORLANDC__) 89 # define HAVE_UTIME 1 90 #endif 91 92 #define HAVE_GETCWD 93 94 #if defined(_MSC_VER) || defined(__EMX__) || defined(__WATCOMC__) 95 # define strcmpi stricmp 96 # define strncmpi strnicmp 97 #endif 98 99 #define HAVE_MEMCPY 100 #define HAVE_MEMSET 101 #ifndef VMS 102 # define HAVE_MEMCMP 103 # define HAVE_MEMCHR 104 #endif 105 106 #if !defined(__WATCOMC__) || defined(OS2) 107 # define HAS_MOUSE 1 108 #endif 109 110 #if defined(__DECC) 111 # define HAVE_STDLIB_H 112 # define HAVE_UNISTD_H 113 #else 114 # ifdef VMS 115 # if __VMS_VER >= 60200000 116 # define HAVE_UNISTD_H 117 # endif 118 # endif 119 #endif 120 121 #if defined(__EMX__) 122 # define HAVE_SYS_WAIT_H 123 # define HAVE_SYS_FCNTL_H 1 124 #endif 125 126 /* Define this if compiler has limits.h */ 127 #define HAVE_LIMITS_H 128 129 /* Set this to 1 if the filesystem is case-sensitive */ 130 #define JED_FILE_PRESERVE_CASE 0 131 132 /* Finally, a reality check... */ 133 #ifdef REAL_UNIX_SYSTEM 134 # undef REAL_UNIX_SYSTEM 135 #endif 136 137 #endif /* _JED_CONFIG_H_ */ 138