diff options
| author | Juanma Barranquero | 2008-06-26 22:33:33 +0000 |
|---|---|---|
| committer | Juanma Barranquero | 2008-06-26 22:33:33 +0000 |
| commit | 43db14bbd823795adfc6f37efcc74abccb77fdd7 (patch) | |
| tree | 097aaca5c26f98406d1d80c13c9b48212edc5392 /src/sysdep.c | |
| parent | 6e73a6a2c1fd9b97a4ed23747897349bd7ffc2f0 (diff) | |
| download | emacs-43db14bbd823795adfc6f37efcc74abccb77fdd7.tar.gz emacs-43db14bbd823795adfc6f37efcc74abccb77fdd7.zip | |
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.
Diffstat (limited to 'src/sysdep.c')
| -rw-r--r-- | src/sysdep.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/sysdep.c b/src/sysdep.c index 0023ea06bde..61a91e01878 100644 --- a/src/sysdep.c +++ b/src/sysdep.c | |||
| @@ -175,8 +175,8 @@ extern Lisp_Object QCflowcontrol, Qhw, Qsw, QCsummary; | |||
| 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 | ||