summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFabrice Popineau <fabrice.popineau@supelec.fr>2012-10-01 16:25:40 +0200
committerEli Zaretskii <eliz@gnu.org>2012-10-01 16:25:40 +0200
commitb3317662acc0157406c20c8e14c43b7126eaa8a0 (patch)
treeeaab4f1bf493387c70c636c5e2a0f5ec77db70aa
parent3d3bfa248930841abe983c5beb9ad095067d2410 (diff)
downloademacs-b3317662acc0157406c20c8e14c43b7126eaa8a0.tar.gz
Fix minor compilation problem with MSVC.
src/emacs.c: Move the inclusion of TERM_HEADER after including windows.h on WINDOWSNT. This avoids compilation problems with MSVC.
-rw-r--r--src/ChangeLog6
-rw-r--r--src/emacs.c8
2 files changed, 10 insertions, 4 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index 074c74a70e2..fd523dd0f1e 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,3 +1,9 @@
+2012-10-01 Fabrice Popineau <fabrice.popineau@gmail.com>
+
+ * emacs.c: Move the inclusion of TERM_HEADER after including
+ windows.h on WINDOWSNT. This avoids compilation problems with
+ MSVC.
+
2012-10-01 Eli Zaretskii <eliz@gnu.org>
* unexw32.c (OFFSET_TO_RVA, RVA_TO_OFFSET)
diff --git a/src/emacs.c b/src/emacs.c
index f3f2081e2e9..a603a56b792 100644
--- a/src/emacs.c
+++ b/src/emacs.c
@@ -31,10 +31,6 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */
#include "lisp.h"
-#ifdef HAVE_WINDOW_SYSTEM
-#include TERM_HEADER
-#endif /* HAVE_WINDOW_SYSTEM */
-
#ifdef WINDOWSNT
#include <fcntl.h>
#include <windows.h> /* just for w32.h */
@@ -42,6 +38,10 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */
#include "w32heap.h" /* for prototype of sbrk */
#endif
+#ifdef HAVE_WINDOW_SYSTEM
+#include TERM_HEADER
+#endif /* HAVE_WINDOW_SYSTEM */
+
#ifdef NS_IMPL_GNUSTEP
/* At least under Debian, GSConfig is in a subdirectory. --Stef */
#include <GNUstepBase/GSConfig.h>