From: Fabrice Popineau Date: Mon, 1 Oct 2012 14:25:40 +0000 (+0200) Subject: Fix minor compilation problem with MSVC. X-Git-Tag: emacs-24.2.90~241^2~56 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=b3317662acc0157406c20c8e14c43b7126eaa8a0;p=emacs.git 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. --- 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 + + * 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 * 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 . */ #include "lisp.h" -#ifdef HAVE_WINDOW_SYSTEM -#include TERM_HEADER -#endif /* HAVE_WINDOW_SYSTEM */ - #ifdef WINDOWSNT #include #include /* just for w32.h */ @@ -42,6 +38,10 @@ along with GNU Emacs. If not, see . */ #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