diff --git a/core/save-bmp.cpp b/core/save-bmp.cpp index bf8e8e4..d71a2a6 100644 --- a/core/save-bmp.cpp +++ b/core/save-bmp.cpp @@ -1,5 +1,7 @@ +#ifndef _CRT_SECURE_NO_WARNINGS #define _CRT_SECURE_NO_WARNINGS +#endif #include "save-bmp.h" diff --git a/core/save-tiff.cpp b/core/save-tiff.cpp index 62c379c..2c400d5 100644 --- a/core/save-tiff.cpp +++ b/core/save-tiff.cpp @@ -1,5 +1,7 @@ +#ifndef _CRT_SECURE_NO_WARNINGS #define _CRT_SECURE_NO_WARNINGS +#endif #include "save-tiff.h" diff --git a/core/shape-description.cpp b/core/shape-description.cpp index c2664d5..639ffa1 100644 --- a/core/shape-description.cpp +++ b/core/shape-description.cpp @@ -1,5 +1,8 @@ +#ifndef _CRT_SECURE_NO_WARNINGS #define _CRT_SECURE_NO_WARNINGS +#endif + #include "shape-description.h" #include diff --git a/ext/import-svg.cpp b/ext/import-svg.cpp index 6a696ff..8a44528 100644 --- a/ext/import-svg.cpp +++ b/ext/import-svg.cpp @@ -1,6 +1,10 @@ #define _USE_MATH_DEFINES + +#ifndef _CRT_SECURE_NO_WARNINGS #define _CRT_SECURE_NO_WARNINGS +#endif + #include "import-svg.h" #ifndef MSDFGEN_DISABLE_SVG diff --git a/ext/save-png.cpp b/ext/save-png.cpp index cfbb1b7..976cb96 100644 --- a/ext/save-png.cpp +++ b/ext/save-png.cpp @@ -1,5 +1,8 @@ +#ifndef _CRT_SECURE_NO_WARNINGS #define _CRT_SECURE_NO_WARNINGS +#endif + #include "save-png.h" #include diff --git a/main.cpp b/main.cpp index 6dc20d0..129bcff 100644 --- a/main.cpp +++ b/main.cpp @@ -9,7 +9,11 @@ #ifdef MSDFGEN_STANDALONE #define _USE_MATH_DEFINES + +#ifndef _CRT_SECURE_NO_WARNINGS #define _CRT_SECURE_NO_WARNINGS +#endif + #include #include #include