win: suppress warning; C4005: '_CRT_SECURE_NO_WARNINGS': macro redefinition

This commit is contained in:
Recep Aslantas
2020-05-17 19:24:48 +03:00
parent 0ccd58da01
commit 7e142132bf
3 changed files with 17 additions and 6 deletions

View File

@@ -8,8 +8,13 @@
#ifndef cglm_common_h
#define cglm_common_h
#define _USE_MATH_DEFINES /* for windows */
#define _CRT_SECURE_NO_WARNINGS /* for windows */
#ifndef _USE_MATH_DEFINES
# define _USE_MATH_DEFINES /* for windows */
#endif
#ifndef _CRT_SECURE_NO_WARNINGS
# define _CRT_SECURE_NO_WARNINGS /* for windows */
#endif
#include <stdint.h>
#include <stddef.h>