From 7c9f9c4a7340c40b0a975fad3bde56b71c63117d Mon Sep 17 00:00:00 2001 From: underscorediscovery Date: Wed, 22 Nov 2017 12:37:59 -0330 Subject: [PATCH] shield windows defines, in case they are already defined --- httplib.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/httplib.h b/httplib.h index d94c314..e0d6d98 100644 --- a/httplib.h +++ b/httplib.h @@ -9,8 +9,12 @@ #define _CPPHTTPLIB_HTTPLIB_H_ #ifdef _MSC_VER +#ifndef _CRT_SECURE_NO_WARNINGS #define _CRT_SECURE_NO_WARNINGS +#endif //_CRT_SECURE_NO_WARNINGS +#ifndef _CRT_NONSTDC_NO_DEPRECATE #define _CRT_NONSTDC_NO_DEPRECATE +#endif //_CRT_NONSTDC_NO_DEPRECATE #ifndef SO_SYNCHRONOUS_NONALERT #define SO_SYNCHRONOUS_NONALERT 0x20