| Name |
Last commit
|
Last update |
|---|---|---|
| .. | ||
| CInterface | ||
| GenericCodeGen | ||
| HLSL | ||
| Include | ||
| MachineIndependent | ||
| OSDependent | ||
| Public | ||
| CMakeLists.txt | ||
| updateGrammar |
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>
| Name |
Last commit
|
Last update |
|---|---|---|
| .. | ||
| CInterface | Loading commit data... | |
| GenericCodeGen | Loading commit data... | |
| HLSL | Loading commit data... | |
| Include | Loading commit data... | |
| MachineIndependent | Loading commit data... | |
| OSDependent | Loading commit data... | |
| Public | Loading commit data... | |
| CMakeLists.txt | Loading commit data... | |
| updateGrammar | Loading commit data... |