Skip to content

Commit 33ca65e

Browse files
committed
Move _CRT_SECURE_NO_WARNINGS check to the top of file.
1 parent 7d6681e commit 33ca65e

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

easywsclient.cpp

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,11 @@
1+
#ifdef _MSC_VER
2+
// _CRT_SECURE_NO_WARNINGS for sscanf errors in MSVC2013 Express
3+
#define _CRT_SECURE_NO_WARNINGS
4+
#endif
5+
16
#include "easywsclient.hpp"
27

38
#ifdef _WIN32
4-
// _CRT_SECURE_NO_WARNINGS for sscanf errors in MSVC2013 Express
5-
#define _CRT_SECURE_NO_WARNINGS
69
#ifndef WIN32_LEAN_AND_MEAN
710
#define WIN32_LEAN_AND_MEAN
811
#endif

0 commit comments

Comments
 (0)