Commit 9748df5d authored by Glenn Morris's avatar Glenn Morris

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.
parent 9374581a
2012-08-10 Glenn Morris <rgm@gnu.org>
* make-docfile.c (main):
(fopen) [!WINDOWSNT]:
(chdir) [!DOS_NT]: No more need to undef.
* movemail.c (DIRECTORY_SEP, IS_DIRECTORY_SEP):
* make-docfile.c (DIRECTORY_SEP, IS_DIRECTORY_SEP):
* emacsclient.c (DIRECTORY_SEP, IS_DIRECTORY_SEP, IS_DEVICE_SEP):
......
......@@ -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. */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment