summaryrefslogtreecommitdiff
path: root/lib-src/make-docfile.c
diff options
context:
space:
mode:
authorGlenn Morris <rgm@gnu.org>2012-08-09 20:16:33 -0400
committerGlenn Morris <rgm@gnu.org>2012-08-09 20:16:33 -0400
commit9748df5d771df91aa4caf534a3ed3a6682f1bfcb (patch)
treeb40fb44518db83377b0438c61553d08ed736aacd /lib-src/make-docfile.c
parent9374581a2448ff52315bc9a5037dcec504167702 (diff)
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.c25
1 files changed, 10 insertions, 15 deletions
diff --git a/lib-src/make-docfile.c b/lib-src/make-docfile.c
index c2ac8ed63f..627f4639aa 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/>. */
#include <config.h>
-/* Defined to be emacs_main, sys_fopen, etc. in config.h. */
-/* FIXME Not for ages? */
-#undef main
-#undef fopen
-#undef chdir
-
#include <stdio.h>
-#include <stdlib.h> /* FIXME config.h unconditionally includes this */
+#include <stdlib.h> /* config.h unconditionally includes this anyway */
#ifdef MSDOS
#include <fcntl.h>
#endif /* MSDOS */
#ifdef WINDOWSNT
+/* Defined to be sys_fopen in ms-w32.h, but only #ifdef emacs, so this
+ is really just insurance. */
+#undef fopen
#include <fcntl.h>
#include <direct.h>
#endif /* WINDOWSNT */
#ifdef DOS_NT
+/* Defined to be sys_chdir in ms-w32.h, but only #ifdef emacs, so this
+ is really just insurance.
+
+ Similarly, msdos defines this as sys_chdir, but we're not linking with the
+ file where that function is defined. */
+#undef chdir
#define READ_TEXT "rt"
#define READ_BINARY "rb"
#else /* not DOS_NT */
@@ -73,14 +76,6 @@ static int scan_c_file (char *filename, const char *mode);
static void start_globals (void);
static void write_globals (void);
-/* FIXME msdos does not define this any more, and in any case we
- undefined it for everyone just above. */
-#ifdef MSDOS
-/* s/msdos.h defines this as sys_chdir, but we're not linking with the
- file where that function is defined. */
-#undef chdir
-#endif
-
#include <unistd.h>
/* Stdio stream for output to the DOC file. */