From 5e899f0be48c661909aa68155f5c1ac17926d3f2 Mon Sep 17 00:00:00 2001 From: "Markus F.X.J. Oberhumer" Date: Mon, 19 Apr 2010 03:15:22 +0200 Subject: [PATCH] Silence some annoying compiler warnings. --- src/conf.h | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/src/conf.h b/src/conf.h index f956a217..30294cfe 100644 --- a/src/conf.h +++ b/src/conf.h @@ -36,6 +36,21 @@ // ACC **************************************************************************/ +#if (defined(_WIN32) || defined(_WIN64)) && defined(_MSC_VER) +#ifndef _CRT_NONSTDC_NO_DEPRECATE +#define _CRT_NONSTDC_NO_DEPRECATE 1 +#endif +#ifndef _CRT_NONSTDC_NO_WARNINGS +#define _CRT_NONSTDC_NO_WARNINGS 1 +#endif +#ifndef _CRT_SECURE_NO_DEPRECATE +#define _CRT_SECURE_NO_DEPRECATE 1 +#endif +#ifndef _CRT_SECURE_NO_WARNINGS +#define _CRT_SECURE_NO_WARNINGS 1 +#endif +#endif + #include "miniacc.h" #if ((ACC_OS_WIN32 || ACC_OS_WIN64) && ACC_CC_MWERKS) && defined(__MSL__) # undef HAVE_UTIME_H /* this pulls in */