glslang-zig/glslang
Christopher Degawa 8486b2e0db
Common: include standard headers before doing any defines
currently, due to

```c++
\#if (defined(_MSC_VER) && _MSC_VER < 1900 /*vs2015*/) || defined MINGW_HAS_SECURE_API
    #include <basetsd.h>
    #ifndef snprintf
    #define snprintf sprintf_s
    #endif
    #define safe_vsprintf(buf,max,format,args) vsnprintf_s((buf), (max), (max), (format), (args))
```

defining `snprintf` to `sprintf_s` essentially unconditionally, this will break the
stdio.h+cstdio system header for mingw-w64 g++ in msys2 with shaderc
https://github.com/google/shaderc/issues/1065

an alternative change would be
https://raw.githubusercontent.com/shinchiro/mpv-winbuild-cmake/master/packages/glslang-0001-fix-gcc-10.1-error.patch
in which the `|| defined MINGW_HAS_SECURE_API` part is removed

Signed-off-by: Christopher Degawa <ccom@randomderp.com>
2020-07-12 00:06:35 +00:00
..
CInterface C Interface: Split SPIR-V C interface to own file 2020-06-15 13:22:19 +01:00
GenericCodeGen Non-functional: White space after "//", mostly for copyrights. 2017-01-06 12:34:14 -07:00
HLSL Use CMake's builtin functionality for PCHs 2020-07-07 16:44:19 +01:00
Include Common: include standard headers before doing any defines 2020-07-12 00:06:35 +00:00
MachineIndependent Merge pull request #2330 from ShabbyX/optimize_for_angle 2020-07-12 00:32:52 +07:00
OSDependent License headers: s/Google/The Khronos Group 2020-07-03 12:21:01 +01:00
Public Merge pull request #2330 from ShabbyX/optimize_for_angle 2020-07-12 00:32:52 +07:00
CMakeLists.txt Generate build information from CHANGES.md 2020-07-09 12:34:02 +01:00
updateGrammar Customize glslang.y to GLSLANG_ANGLE 2020-07-08 16:01:42 -04:00