]> git.eshelyaron.com Git - emacs.git/commitdiff
Fix minor compilation problem with MSVC.
authorFabrice Popineau <fabrice.popineau@supelec.fr>
Mon, 1 Oct 2012 14:25:40 +0000 (16:25 +0200)
committerEli Zaretskii <eliz@gnu.org>
Mon, 1 Oct 2012 14:25:40 +0000 (16:25 +0200)
 src/emacs.c: Move the inclusion of TERM_HEADER after including
 windows.h on WINDOWSNT.  This avoids compilation problems with
 MSVC.

src/ChangeLog
src/emacs.c

index 074c74a70e2e280aa48a46b2a94afc0b002242bf..fd523dd0f1e53f7fd09991593a441cc7fc73e3df 100644 (file)
@@ -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)
index f3f2081e2e9da525e63dbfad644ff1f3560f5ae3..a603a56b792f40502e996bd196e0fcc45974bfcd 100644 (file)
@@ -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>