Browse Source

Only define Windows string functions if needed (#74)

* Only define Windows string functions if needed

Otherwise this results in warnings when compiling with MinGW-w64
Jan Niklas Hasse 6 years ago
parent
commit
742ab09cc0
1 changed files with 1 additions and 1 deletions
  1. 1 1
      Include/RmlUi/Core/StringUtilities.h

+ 1 - 1
Include/RmlUi/Core/StringUtilities.h

@@ -43,7 +43,7 @@ namespace Core {
  */
  */
 
 
 // Redefine Windows APIs as their STDC counterparts.
 // Redefine Windows APIs as their STDC counterparts.
-#ifdef RMLUI_PLATFORM_WIN32
+#ifdef _MSC_VER
 	#define strcasecmp stricmp
 	#define strcasecmp stricmp
 	#define strncasecmp strnicmp
 	#define strncasecmp strnicmp
 #endif
 #endif