aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJuanma Barranquero2008-06-26 22:33:33 +0000
committerJuanma Barranquero2008-06-26 22:33:33 +0000
commit43db14bbd823795adfc6f37efcc74abccb77fdd7 (patch)
tree097aaca5c26f98406d1d80c13c9b48212edc5392 /src
parent6e73a6a2c1fd9b97a4ed23747897349bd7ffc2f0 (diff)
downloademacs-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')
-rw-r--r--src/ChangeLog38
-rw-r--r--src/editfns.c2
-rw-r--r--src/makefile.w32-in2
-rw-r--r--src/sysdep.c4
4 files changed, 29 insertions, 17 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index 83b6881b424..867b0fb1cbc 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,19 +1,31 @@
12008-06-26 Juanma Barranquero <lekktu@gmail.com>
2 Eli Zaretskii <eliz@gnu.org>
3
4 * makefile.w32-in (LOCAL_FLAGS):
5 Don't include WINDOWSNT, DOS_NT and _UCHAR_T.
6
7 * sysdep.c (_spawnlp, _getpid):
8 Declare with explicit _cdecl instead of _CRTAPI1.
9
10 * editfns.c (Fget_internal_run_time):
11 Check for WINDOWSNT with #ifdef, not #if.
12
12008-06-26 Jason Rumney <jasonr@gnu.org> 132008-06-26 Jason Rumney <jasonr@gnu.org>
2 14
3 * w32font.h (FONT_HANDLE, FONT_TEXTMETRIC): New macros. 15 * w32font.h (FONT_HANDLE, FONT_TEXTMETRIC): New macros.
4 16
5 * w32term.c (x_draw_glyph_string_foreground): 17 * w32term.c (x_draw_glyph_string_foreground):
6 (x_draw_composite_glyph_string_foreground): Sync with xterm.c. 18 (x_draw_composite_glyph_string_foreground): Sync with xterm.c.
7 Use FONT_HANDLE macro. 19 Use FONT_HANDLE macro.
8 (x_draw_glyph_string): Use FONT_TEXTMETRIC macro. 20 (x_draw_glyph_string): Use FONT_TEXTMETRIC macro.
9 21
10 * w32uniscribe.c (uniscribe_otf_capability, uniscribe_shape): 22 * w32uniscribe.c (uniscribe_otf_capability, uniscribe_shape):
11 (uniscribe_encode_char): Use FONT_HANDLE macro. 23 (uniscribe_encode_char): Use FONT_HANDLE macro.
12 24
13 * w32font.c (Fx_select_font): Use FONT_HANDLE macro. 25 * w32font.c (Fx_select_font): Use FONT_HANDLE macro.
14 (w32font_text_extents): Use precast w32_font. 26 (w32font_text_extents): Use precast w32_font.
15 (w32font_close): Free cached metrics. 27 (w32font_close): Free cached metrics.
16 (w32font_open_internal): Allocate space for name on stack. 28 (w32font_open_internal): Allocate space for name on stack.
17 29
182008-06-26 Chong Yidong <cyd@stupidchicken.com> 302008-06-26 Chong Yidong <cyd@stupidchicken.com>
19 31
@@ -21,8 +33,8 @@
21 33
222008-06-26 Jason Rumney <jasonr@gnu.org> 342008-06-26 Jason Rumney <jasonr@gnu.org>
23 35
24 * w32term.h (FONT_AVG_WIDTH): Remove obsolete macro. 36 * w32term.h (FONT_AVG_WIDTH): Remove obsolete macro.
25 (CP_8BIT, CP_UNICODE, CP_UNKNOWN): Remove obsolete constants. 37 (CP_8BIT, CP_UNICODE, CP_UNKNOWN): Remove obsolete constants.
26 38
272008-06-26 Juanma Barranquero <lekktu@gmail.com> 392008-06-26 Juanma Barranquero <lekktu@gmail.com>
28 40
diff --git a/src/editfns.c b/src/editfns.c
index 192277e4295..0487ecf4707 100644
--- a/src/editfns.c
+++ b/src/editfns.c
@@ -1485,7 +1485,7 @@ on systems that do not provide resolution finer than a second. */)
1485 make_number ((secs >> 0) & 0xffff), 1485 make_number ((secs >> 0) & 0xffff),
1486 make_number (usecs)); 1486 make_number (usecs));
1487#else /* ! HAVE_GETRUSAGE */ 1487#else /* ! HAVE_GETRUSAGE */
1488#if WINDOWSNT 1488#ifdef WINDOWSNT
1489 return w32_get_internal_run_time (); 1489 return w32_get_internal_run_time ();
1490#else /* ! WINDOWSNT */ 1490#else /* ! WINDOWSNT */
1491 return Fcurrent_time (); 1491 return Fcurrent_time ();
diff --git a/src/makefile.w32-in b/src/makefile.w32-in
index 116aea2d56d..872c3320746 100644
--- a/src/makefile.w32-in
+++ b/src/makefile.w32-in
@@ -29,7 +29,7 @@ EMACSLOADPATH=$(CURDIR)/../lisp
29# HAVE_CONFIG_H is required by some generic gnu sources stuck into 29# HAVE_CONFIG_H is required by some generic gnu sources stuck into
30# the emacs source tree. 30# the emacs source tree.
31# 31#
32LOCAL_FLAGS = -Demacs=1 -DWINDOWSNT -DDOS_NT -DHAVE_CONFIG_H -I../nt/inc -D_UCHAR_T -DHAVE_NTGUI=1 $(EMACS_EXTRA_C_FLAGS) 32LOCAL_FLAGS = -Demacs=1 -DHAVE_CONFIG_H -I../nt/inc -DHAVE_NTGUI=1 $(EMACS_EXTRA_C_FLAGS)
33 33
34EMACS = $(BLD)/emacs.exe 34EMACS = $(BLD)/emacs.exe
35TEMACS = $(BLD)/temacs.exe 35TEMACS = $(BLD)/temacs.exe
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
178int _CRTAPI1 _spawnlp (int, const char *, const char *, ...); 178int _cdecl _spawnlp (int, const char *, const char *, ...);
179int _CRTAPI1 _getpid (void); 179int _cdecl _getpid (void);
180extern char *getwd (char *); 180extern char *getwd (char *);
181#endif 181#endif
182 182