diff options
| author | Glenn Morris | 2012-08-09 20:16:33 -0400 |
|---|---|---|
| committer | Glenn Morris | 2012-08-09 20:16:33 -0400 |
| commit | 9748df5d771df91aa4caf534a3ed3a6682f1bfcb (patch) | |
| tree | b40fb44518db83377b0438c61553d08ed736aacd /lib-src/make-docfile.c | |
| parent | 9374581a2448ff52315bc9a5037dcec504167702 (diff) | |
| download | emacs-9748df5d771df91aa4caf534a3ed3a6682f1bfcb.tar.gz emacs-9748df5d771df91aa4caf534a3ed3a6682f1bfcb.zip | |
Remove some make-docfile.c undes that are no longer needed
* lib-src/make-docfile.c (main):
(fopen) [!WINDOWSNT]:
(chdir) [!DOS_NT]: No more need to undef.
Diffstat (limited to 'lib-src/make-docfile.c')
| -rw-r--r-- | lib-src/make-docfile.c | 25 |
1 files changed, 10 insertions, 15 deletions
diff --git a/lib-src/make-docfile.c b/lib-src/make-docfile.c index c2ac8ed63f6..627f4639aaa 100644 --- a/lib-src/make-docfile.c +++ b/lib-src/make-docfile.c | |||
| @@ -36,23 +36,26 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ | |||
| 36 | 36 | ||
| 37 | #include <config.h> | 37 | #include <config.h> |
| 38 | 38 | ||
| 39 | /* Defined to be emacs_main, sys_fopen, etc. in config.h. */ | ||
| 40 | /* FIXME Not for ages? */ | ||
| 41 | #undef main | ||
| 42 | #undef fopen | ||
| 43 | #undef chdir | ||
| 44 | |||
| 45 | #include <stdio.h> | 39 | #include <stdio.h> |
| 46 | #include <stdlib.h> /* FIXME config.h unconditionally includes this */ | 40 | #include <stdlib.h> /* config.h unconditionally includes this anyway */ |
| 47 | #ifdef MSDOS | 41 | #ifdef MSDOS |
| 48 | #include <fcntl.h> | 42 | #include <fcntl.h> |
| 49 | #endif /* MSDOS */ | 43 | #endif /* MSDOS */ |
| 50 | #ifdef WINDOWSNT | 44 | #ifdef WINDOWSNT |
| 45 | /* Defined to be sys_fopen in ms-w32.h, but only #ifdef emacs, so this | ||
| 46 | is really just insurance. */ | ||
| 47 | #undef fopen | ||
| 51 | #include <fcntl.h> | 48 | #include <fcntl.h> |
| 52 | #include <direct.h> | 49 | #include <direct.h> |
| 53 | #endif /* WINDOWSNT */ | 50 | #endif /* WINDOWSNT */ |
| 54 | 51 | ||
| 55 | #ifdef DOS_NT | 52 | #ifdef DOS_NT |
| 53 | /* Defined to be sys_chdir in ms-w32.h, but only #ifdef emacs, so this | ||
| 54 | is really just insurance. | ||
| 55 | |||
| 56 | Similarly, msdos defines this as sys_chdir, but we're not linking with the | ||
| 57 | file where that function is defined. */ | ||
| 58 | #undef chdir | ||
| 56 | #define READ_TEXT "rt" | 59 | #define READ_TEXT "rt" |
| 57 | #define READ_BINARY "rb" | 60 | #define READ_BINARY "rb" |
| 58 | #else /* not DOS_NT */ | 61 | #else /* not DOS_NT */ |
| @@ -73,14 +76,6 @@ static int scan_c_file (char *filename, const char *mode); | |||
| 73 | static void start_globals (void); | 76 | static void start_globals (void); |
| 74 | static void write_globals (void); | 77 | static void write_globals (void); |
| 75 | 78 | ||
| 76 | /* FIXME msdos does not define this any more, and in any case we | ||
| 77 | undefined it for everyone just above. */ | ||
| 78 | #ifdef MSDOS | ||
| 79 | /* s/msdos.h defines this as sys_chdir, but we're not linking with the | ||
| 80 | file where that function is defined. */ | ||
| 81 | #undef chdir | ||
| 82 | #endif | ||
| 83 | |||
| 84 | #include <unistd.h> | 79 | #include <unistd.h> |
| 85 | 80 | ||
| 86 | /* Stdio stream for output to the DOC file. */ | 81 | /* Stdio stream for output to the DOC file. */ |