From 33ca65e4e80a1847793bc623fa825737a6a8f3cc Mon Sep 17 00:00:00 2001 From: David Baird Date: Tue, 12 Nov 2013 18:33:12 -0700 Subject: [PATCH] Move _CRT_SECURE_NO_WARNINGS check to the top of file. --- easywsclient.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/easywsclient.cpp b/easywsclient.cpp index ba8be21..bc9a72c 100644 --- a/easywsclient.cpp +++ b/easywsclient.cpp @@ -1,8 +1,11 @@ +#ifdef _MSC_VER + // _CRT_SECURE_NO_WARNINGS for sscanf errors in MSVC2013 Express + #define _CRT_SECURE_NO_WARNINGS +#endif + #include "easywsclient.hpp" #ifdef _WIN32 - // _CRT_SECURE_NO_WARNINGS for sscanf errors in MSVC2013 Express - #define _CRT_SECURE_NO_WARNINGS #ifndef WIN32_LEAN_AND_MEAN #define WIN32_LEAN_AND_MEAN #endif