From fede517b2207d53804ce552229aa4b5889095194 Mon Sep 17 00:00:00 2001 From: Victor Zverovich Date: Wed, 25 Feb 2015 17:20:26 -0800 Subject: [PATCH] Don't define _CRT_SECURE_NO_WARNINGS if it is already defined This is done to avoid warnings. --- posix.cc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/posix.cc b/posix.cc index d8f9bb62..023cd9e1 100644 --- a/posix.cc +++ b/posix.cc @@ -26,7 +26,9 @@ */ // Disable bogus MSVC warnings. -#define _CRT_SECURE_NO_WARNINGS +#ifndef _CRT_SECURE_NO_WARNINGS +# define _CRT_SECURE_NO_WARNINGS +#endif #include "posix.h"