glslang: Sync with upstream 4fc7a33 for Vulkan SDK 1.2.131
Fixes #36888.
This commit is contained in:
15
thirdparty/glslang/patches/fix-mingw-snprintf.patch
vendored
Normal file
15
thirdparty/glslang/patches/fix-mingw-snprintf.patch
vendored
Normal file
@ -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
|
||||
Reference in New Issue
Block a user