diff --git a/implot.cpp b/implot.cpp index 596945b..e3b39c8 100644 --- a/implot.cpp +++ b/implot.cpp @@ -22,6 +22,10 @@ // ImPlot v0.1 WIP +#if defined(_MSC_VER) && !defined(_CRT_SECURE_NO_WARNINGS) +#define _CRT_SECURE_NO_WARNINGS +#endif + #ifdef _MSC_VER #pragma warning (disable: 4996) // 'This function or variable may be unsafe': strcpy, strdup, sprintf, vsnprintf, sscanf, fopen #endif diff --git a/implot_demo.cpp b/implot_demo.cpp index 2ea7b6e..e9a86e3 100644 --- a/implot_demo.cpp +++ b/implot_demo.cpp @@ -22,6 +22,10 @@ // ImPlot v0.1 WIP +#if defined(_MSC_VER) && !defined(_CRT_SECURE_NO_WARNINGS) +#define _CRT_SECURE_NO_WARNINGS +#endif + #ifdef _MSC_VER #pragma warning (disable: 4996) // 'This function or variable may be unsafe': strcpy, strdup, sprintf, vsnprintf, sscanf, fopen #endif