| Line | |
|---|
| 1 | 1c\
|
|---|
| 2 | /* config.h for compiling `patch' with DJGPP for MS-DOS and MS-Windows.\
|
|---|
| 3 | Please keep this file as similar as possible to ../../config.h\
|
|---|
| 4 | to simplify maintenance later. */\
|
|---|
| 5 | \
|
|---|
| 6 | /* This does most of the work; the rest of this file defines only those\
|
|---|
| 7 | symbols that <sys/config.h> doesn't define correctly. */\
|
|---|
| 8 | #include <sys/config.h>
|
|---|
| 9 |
|
|---|
| 10 | s/#undef HAVE_DONE_WORKING_MALLOC_CHECK/#define HAVE_DONE_WORKING_MALLOC_CHECK 1/
|
|---|
| 11 | s/#undef HAVE_DONE_WORKING_REALLOC_CHECK/#define HAVE_DONE_WORKING_REALLOC_CHECK 1/
|
|---|
| 12 | s/#undef HAVE_LONG_FILE_NAMES/#define HAVE_LONG_FILE_NAMES 1/
|
|---|
| 13 | s/#undef HAVE_MEMCMP/#define HAVE_MEMCMP 1/
|
|---|
| 14 | s/#undef HAVE_MKTEMP/#define HAVE_MKTEMP 1/
|
|---|
| 15 | s/#undef HAVE_PATHCONF/#define HAVE_PATHCONF 1/
|
|---|
| 16 | s/#undef HAVE_RAISE/#define HAVE_RAISE 1/
|
|---|
| 17 | s/#undef HAVE_SIGPROCMASK/#define HAVE_SIGPROCMASK 1/
|
|---|
| 18 | s/#undef HAVE_STRUCT_UTIMBUF/#define HAVE_STRUCT_UTIMBUF 1/
|
|---|
| 19 | s/#undef HAVE_UTIME_H/#define HAVE_UTIME_H 1/
|
|---|
| 20 | s/#undef HAVE_VPRINTF/#define HAVE_VPRINTF 1/
|
|---|
| 21 | s/#undef PROTOTYPES/#define PROTOTYPES 1/
|
|---|
| 22 |
|
|---|
| 23 | s,#undef.*,/* & */,
|
|---|
| 24 |
|
|---|
| 25 | $a\
|
|---|
| 26 | /* DGJPP-specific definitions */\
|
|---|
| 27 | \
|
|---|
| 28 | #define chdir chdir_safer\
|
|---|
| 29 | int chdir_safer (char const *);\
|
|---|
| 30 | \
|
|---|
| 31 | #define FILESYSTEM_PREFIX_LEN(f) ((f)[0] && (f)[1] == ':' ? 2 : 0)\
|
|---|
| 32 | #define ISSLASH(c) ((c) == '/' || (c) == '\\\\')\
|
|---|
| 33 | \
|
|---|
| 34 | #define HAVE_DOS_FILE_NAMES 1\
|
|---|
| 35 | \
|
|---|
| 36 | #define HAVE_SETMODE 1\
|
|---|
| 37 | #ifdef WIN32\
|
|---|
| 38 | # define setmode _setmode\
|
|---|
| 39 | #endif\
|
|---|
| 40 | \
|
|---|
| 41 | #define TMPDIR "c:"
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.