Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergey Sharybin <sergey.vfx@gmail.com>2010-11-11 23:32:28 +0300
committerSergey Sharybin <sergey.vfx@gmail.com>2010-11-11 23:32:28 +0300
commit0d488e00c8e10ab55d38bc8bc799a12a117d7402 (patch)
tree5de00bdd3b57d23c32c30c83293dea437abb38d7 /source/blender/windowmanager
parentb96bd0a7325bf8fbe00aa91cbac51961d2a2ef0b (diff)
System console toggling for MinGW
Define WINVER=0x0501 for MinGW due to some stuff requres this winver, but MinGW's default is 0x0400 (thanks AlexKu for point) Better to replace all #include <windows.h> with #include "BLI_winstuff.h" to avoid possibility of different functions prototypes in different modules.
Diffstat (limited to 'source/blender/windowmanager')
-rw-r--r--source/blender/windowmanager/intern/wm_operators.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/source/blender/windowmanager/intern/wm_operators.c b/source/blender/windowmanager/intern/wm_operators.c
index f1f23928929..307e6514c71 100644
--- a/source/blender/windowmanager/intern/wm_operators.c
+++ b/source/blender/windowmanager/intern/wm_operators.c
@@ -32,8 +32,9 @@
#include <stdio.h>
#include <stddef.h>
#include <assert.h>
+
#ifdef WIN32
-#include <windows.h>
+#include "BLI_winstuff.h"
#include <io.h>
#endif
@@ -2036,7 +2037,7 @@ static void WM_OT_quit_blender(wmOperatorType *ot)
}
/* *********************** */
-#if defined(WIN32) && !defined(FREE_WINDOWS)
+#if defined(WIN32)
static int console= 1;
void WM_toggle_console(bContext *C, short show)
{
@@ -3148,7 +3149,7 @@ void wm_operatortype_init(void)
WM_operatortype_append(WM_OT_splash);
WM_operatortype_append(WM_OT_search_menu);
WM_operatortype_append(WM_OT_call_menu);
-#if defined(WIN32) && !defined(FREE_WINDOWS)
+#if defined(WIN32)
WM_operatortype_append(WM_OT_toggle_console);
#endif