Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Prevent multiple defined _CRT_SECURE_NO_WARNINGS macro #208

Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions core/save-bmp.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@

#ifndef _CRT_SECURE_NO_WARNINGS
#define _CRT_SECURE_NO_WARNINGS
#endif

#include "save-bmp.h"

Expand Down
2 changes: 2 additions & 0 deletions core/save-tiff.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@

#ifndef _CRT_SECURE_NO_WARNINGS
#define _CRT_SECURE_NO_WARNINGS
#endif

#include "save-tiff.h"

Expand Down
3 changes: 3 additions & 0 deletions core/shape-description.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@

#ifndef _CRT_SECURE_NO_WARNINGS
#define _CRT_SECURE_NO_WARNINGS
#endif

#include "shape-description.h"

#include <cstdlib>
Expand Down
4 changes: 4 additions & 0 deletions ext/import-svg.cpp
Original file line number Diff line number Diff line change
@@ -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
Expand Down
3 changes: 3 additions & 0 deletions ext/save-png.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@

#ifndef _CRT_SECURE_NO_WARNINGS
#define _CRT_SECURE_NO_WARNINGS
#endif

#include "save-png.h"

#include <cstdio>
Expand Down
4 changes: 4 additions & 0 deletions main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,11 @@
#ifdef MSDFGEN_STANDALONE

#define _USE_MATH_DEFINES

#ifndef _CRT_SECURE_NO_WARNINGS
#define _CRT_SECURE_NO_WARNINGS
#endif

#include <cstdlib>
#include <cstdio>
#include <cmath>
Expand Down