Browse Source

Bugfix: fixed error building libRocket with MinGW

When librocket was build with MinGW the wrong platform was selected. As
a consequence the wrong code was compiled which lead to corrupted
libraries.
Walter Heil 12 years ago
parent
commit
66b4d56779
1 changed files with 1 additions and 1 deletions
  1. 1 1
      Include/Rocket/Core/Platform.h

+ 1 - 1
Include/Rocket/Core/Platform.h

@@ -28,7 +28,7 @@
 #ifndef ROCKETCOREPLATFORM_H
 #ifndef ROCKETCOREPLATFORM_H
 #define ROCKETCOREPLATFORM_H
 #define ROCKETCOREPLATFORM_H
 
 
-#if defined __WIN32__ || defined _WIN32
+#if (defined __WIN32__ || defined _WIN32) && !defined __MINGW32__
 	#define ROCKET_PLATFORM_WIN32
 	#define ROCKET_PLATFORM_WIN32
 	#define ROCKET_PLATFORM_NAME "win32"
 	#define ROCKET_PLATFORM_NAME "win32"
 	#if !defined(__MINGW32__)
 	#if !defined(__MINGW32__)