Build: Fix strdup -> _strdup warnings.
authorJohn Kessenich <cepheus@frii.com>
Tue, 12 Sep 2017 03:27:23 +0000 (21:27 -0600)
committerJohn Kessenich <cepheus@frii.com>
Tue, 12 Sep 2017 03:56:09 +0000 (21:56 -0600)
glslang/Include/Common.h

index a2bdaa1f58232dbdc60c7be7e04a7ccc5053d250..6e201e38379f9d5d7c1d061964c28ee7c6348967 100644 (file)
@@ -78,6 +78,10 @@ inline long long int atoll (const char* str)
 }
 #endif
 
+#if defined(_MSC_VER)
+#define strdup _strdup
+#endif
+
 /* windows only pragma */
 #ifdef _MSC_VER
     #pragma warning(disable : 4786) // Don't warn about too long identifiers