1
0
mirror of https://github.com/lammertb/libhttp.git synced 2025-08-09 03:22:45 +03:00

Fix "Macro name is a reserved identifier" on OS X

This also more accurately only sets these definitions for MSVC.
This commit is contained in:
Kevin Wojniak
2016-05-28 14:10:52 -07:00
parent 016535194f
commit 55f3e39ceb

View File

@@ -19,12 +19,14 @@
* THE SOFTWARE.
*/
#ifdef _MSC_VER
#if !defined(_CRT_SECURE_NO_WARNINGS)
#define _CRT_SECURE_NO_WARNINGS
#endif
#if !defined(_CRT_SECURE_NO_DEPRECATE)
#define _CRT_SECURE_NO_DEPRECATE
#endif
#endif
#include "shared.h"
#include <string.h>