comparison src/sysdep.c @ 96348:ecd6143014da

Remove unneeded -Defines in the compiler command line (MinGW and MSVC). * nt/nmake.defs: * nt/gmake.defs (FONT_CFLAGS): Remove. (EMACS_EXTRA_C_FLAGS): Don't include FONT_CFLAGS. (CFLAGS): Don't include WIN32_LEAN_AND_MEAN, _WIN32_WINNT, -D$(ARCH) and _CRTAPI1. (ARCH_FLAGS): Don't include _X86_. * nt/config.nt (_WIN32_WINNT, WIN32_LEAN_AND_MEAN): Define. * src/makefile.w32-in (LOCAL_FLAGS): Don't include WINDOWSNT, DOS_NT and _UCHAR_T. * src/sysdep.c (_spawnlp, _getpid): Declare with explicit _cdecl instead of _CRTAPI1. * src/editfns.c (Fget_internal_run_time): Check for WINDOWSNT with #ifdef, not #if.
author Juanma Barranquero <lekktu@gmail.com>
date Thu, 26 Jun 2008 22:33:33 +0000
parents 7d463685c286
children cb1bfa1dca4f
comparison
equal deleted inserted replaced
96347:69b4ce17b47a 96348:ecd6143014da
173 173
174 #ifdef WINDOWSNT 174 #ifdef WINDOWSNT
175 #include <direct.h> 175 #include <direct.h>
176 /* In process.h which conflicts with the local copy. */ 176 /* In process.h which conflicts with the local copy. */
177 #define _P_WAIT 0 177 #define _P_WAIT 0
178 int _CRTAPI1 _spawnlp (int, const char *, const char *, ...); 178 int _cdecl _spawnlp (int, const char *, const char *, ...);
179 int _CRTAPI1 _getpid (void); 179 int _cdecl _getpid (void);
180 extern char *getwd (char *); 180 extern char *getwd (char *);
181 #endif 181 #endif
182 182
183 #ifdef NONSYSTEM_DIR_LIBRARY 183 #ifdef NONSYSTEM_DIR_LIBRARY
184 #include "ndir.h" 184 #include "ndir.h"