1
0
mirror of synced 2025-04-21 22:25:55 +03:00

Merge pull request #22 from underscorediscovery/fix-includes

shield windows defines, in case they are already defined
This commit is contained in:
yhirose 2017-11-24 20:35:36 -05:00 committed by GitHub
commit ec34abb910
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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