Browse Source

Use a MSVC compatible preprocessor directive for warning messages

Raphaël Londeix 11 years ago
parent
commit
63b64b66b1

+ 1 - 1
Include/Rocket/Controls/Header.h

@@ -32,7 +32,7 @@
 
 #ifdef STATIC_LIB
 	#define ROCKET_STATIC_LIB
-	#warning "DEPRECATED: STATIC_LIB macro has been deprecated in favor of ROCKET_STATIC_LIB and support will be removed in a future release"
+	#pragma message("DEPRECATED: STATIC_LIB macro has been deprecated in favor of ROCKET_STATIC_LIB and support will be removed in a future release")
 #endif
 
 #if !defined ROCKET_STATIC_LIB

+ 1 - 1
Include/Rocket/Controls/Lua/Header.h

@@ -36,7 +36,7 @@
 
 #ifdef STATIC_LIB
 	#define ROCKET_STATIC_LIB
-	#warning "DEPRECATED: STATIC_LIB macro has been deprecated in favor of ROCKET_STATIC_LIB and support will be removed in a future release"
+	#pragma message("DEPRECATED: STATIC_LIB macro has been deprecated in favor of ROCKET_STATIC_LIB and support will be removed in a future release")
 #endif
 
 #if !defined ROCKET_STATIC_LIB

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

@@ -35,7 +35,7 @@
 
 #ifdef STATIC_LIB
 	#define ROCKET_STATIC_LIB
-	#warning "DEPRECATED: STATIC_LIB macro has been deprecated in favor of ROCKET_STATIC_LIB and support will be removed in a future release"
+	#pragma message("DEPRECATED: STATIC_LIB macro has been deprecated in favor of ROCKET_STATIC_LIB and support will be removed in a future release")
 #endif
 
 #if !defined ROCKET_STATIC_LIB

+ 1 - 1
Include/Rocket/Core/Lua/Header.h

@@ -36,7 +36,7 @@
 
 #ifdef STATIC_LIB
 	#define ROCKET_STATIC_LIB
-	#warning "DEPRECATED: STATIC_LIB macro has been deprecated in favor of ROCKET_STATIC_LIB and support will be removed in a future release"
+	#pragma message("DEPRECATED: STATIC_LIB macro has been deprecated in favor of ROCKET_STATIC_LIB and support will be removed in a future release")
 #endif
 
 #if !defined ROCKET_STATIC_LIB

+ 1 - 1
Include/Rocket/Core/Python/Header.h

@@ -32,7 +32,7 @@
 
 #ifdef STATIC_LIB
 	#define ROCKET_STATIC_LIB
-	#warning "DEPRECATED: STATIC_LIB macro has been deprecated in favor of ROCKET_STATIC_LIB and support will be removed in a future release"
+	#pragma message("DEPRECATED: STATIC_LIB macro has been deprecated in favor of ROCKET_STATIC_LIB and support will be removed in a future release")
 #endif
 
 #if !defined ROCKET_STATIC_LIB

+ 1 - 1
Include/Rocket/Debugger/Header.h

@@ -32,7 +32,7 @@
 
 #ifdef STATIC_LIB
 	#define ROCKET_STATIC_LIB
-	#warning "DEPRECATED: STATIC_LIB macro has been deprecated in favor of ROCKET_STATIC_LIB and support will be removed in a future release"
+	#pragma message("DEPRECATED: STATIC_LIB macro has been deprecated in favor of ROCKET_STATIC_LIB and support will be removed in a future release")
 #endif
 
 #if !defined ROCKET_STATIC_LIB