Просмотр исходного кода

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 лет назад
Родитель
Сommit
742ab09cc0
1 измененных файлов с 1 добавлено и 1 удалено
  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.
-#ifdef RMLUI_PLATFORM_WIN32
+#ifdef _MSC_VER
 	#define strcasecmp stricmp
 	#define strncasecmp strnicmp
 #endif