[gtk+] filechoosernativewin32: Define MSC_VER at top of file



commit 117e303b4494e802638693c74ea95691964089de
Author: Benjamin Otte <otte gnome org>
Date:   Sat Feb 6 04:24:39 2016 +0100

    filechoosernativewin32: Define MSC_VER at top of file
    
    The headers we include might include windows headers which define _MSC_VER already.

 gtk/gtkfilechoosernativewin32.c |   12 ++++++------
 1 files changed, 6 insertions(+), 6 deletions(-)
---
diff --git a/gtk/gtkfilechoosernativewin32.c b/gtk/gtkfilechoosernativewin32.c
index 9e60e27..aa82216 100644
--- a/gtk/gtkfilechoosernativewin32.c
+++ b/gtk/gtkfilechoosernativewin32.c
@@ -19,6 +19,12 @@
 
 #include "config.h"
 
+/* Vista or newer */
+#define _WIN32_WINNT 0x0600
+#define WINVER _WIN32_WINNT
+#define NTDDI_VERSION NTDDI_VISTA
+#define COBJMACROS
+
 #include "gtkfilechoosernativeprivate.h"
 #include "gtknativedialogprivate.h"
 
@@ -41,12 +47,6 @@
 #include "gtkfilechooserentry.h"
 #include "gtkfilefilterprivate.h"
 
-/* Vista or newer */
-#define _WIN32_WINNT 0x0600
-#define WINVER _WIN32_WINNT
-#define NTDDI_VERSION NTDDI_VISTA
-#define COBJMACROS
-
 #include "win32/gdkwin32.h"
 #include <shlobj.h>
 #include <windows.h>


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]