GRAPHICS: OPENGL: Allow sscanf_s for GLAD

It is properly guarded so it won't bring any portability problem and the
file is autogenerated so this avoids to patch the file.
This commit is contained in:
Le Philousophe 2024-06-01 13:11:19 +02:00
parent a31ea07f82
commit 7794de5e5e

View File

@ -20,6 +20,12 @@
*/
#define GLAD_GL_IMPLEMENTATION
// sscanf_s is used by glad on MSVC only
// we can't know before c=config.h is loaded that GLAD will be used
// but at this time it will be too late to allow sscanf_s
#ifdef _MSC_VER
#define FORBIDDEN_SYMBOL_EXCEPTION_sscanf_s
#endif
#include "graphics/opengl/context.h"