space_file: fix build error with msvc.
authorRay Molenkamp <github@lazydodo.com>
Wed, 15 May 2019 15:13:07 +0000 (09:13 -0600)
committerRay Molenkamp <github@lazydodo.com>
Wed, 15 May 2019 15:13:07 +0000 (09:13 -0600)
Both windows.h and wm_types.h define HKEY, moving wm_types after windows.h
sidesteps the issue, since HKEY isn't used in fsmenu.c it doesn't cause
problems.

source/blender/editors/space_file/fsmenu.c

index 25187d5..208ba73 100644 (file)
@@ -35,9 +35,6 @@
 
 #include "ED_fileselect.h"
 
-#include "WM_api.h"
-#include "WM_types.h"
-
 #ifdef WIN32
 /* Need to include windows.h so _WIN32_IE is defined. */
 #  include <windows.h>
 #  include "BLI_winstuff.h"
 #endif
 
+#include "WM_api.h"
+#include "WM_types.h"
+
+
 #ifdef __APPLE__
 #  include <Carbon/Carbon.h>
 #endif /* __APPLE__ */