diff options
Diffstat (limited to 'thirdparty/glslang/patches/fix-mingw-snprintf.patch')
-rw-r--r-- | thirdparty/glslang/patches/fix-mingw-snprintf.patch | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/thirdparty/glslang/patches/fix-mingw-snprintf.patch b/thirdparty/glslang/patches/fix-mingw-snprintf.patch new file mode 100644 index 0000000000..2a51bc1f22 --- /dev/null +++ b/thirdparty/glslang/patches/fix-mingw-snprintf.patch @@ -0,0 +1,15 @@ +diff --git a/thirdparty/glslang/glslang/Include/Common.h b/thirdparty/glslang/glslang/Include/Common.h +index 733a790cfd..2c511bc1c5 100644 +--- a/thirdparty/glslang/glslang/Include/Common.h ++++ b/thirdparty/glslang/glslang/Include/Common.h +@@ -50,7 +50,9 @@ std::string to_string(const T& val) { + } + #endif + +-#if (defined(_MSC_VER) && _MSC_VER < 1900 /*vs2015*/) || defined MINGW_HAS_SECURE_API ++// -- GODOT start -- ++#if (defined(_MSC_VER) && _MSC_VER < 1900 /*vs2015*/) /* || defined MINGW_HAS_SECURE_API */ ++// -- GODOT end -- + #include <basetsd.h> + #ifndef snprintf + #define snprintf sprintf_s |