summaryrefslogtreecommitdiff
path: root/lzo/tests/sizes.c
diff options
context:
space:
mode:
Diffstat (limited to 'lzo/tests/sizes.c')
-rw-r--r--lzo/tests/sizes.c18
1 files changed, 18 insertions, 0 deletions
diff --git a/lzo/tests/sizes.c b/lzo/tests/sizes.c
index fc04b2b2..aea8cc2e 100644
--- a/lzo/tests/sizes.c
+++ b/lzo/tests/sizes.c
@@ -2,6 +2,9 @@
This file is part of the LZO real-time data compression library.
+ Copyright (C) 2011 Markus Franz Xaver Johannes Oberhumer
+ Copyright (C) 2010 Markus Franz Xaver Johannes Oberhumer
+ Copyright (C) 2009 Markus Franz Xaver Johannes Oberhumer
Copyright (C) 2008 Markus Franz Xaver Johannes Oberhumer
Copyright (C) 2007 Markus Franz Xaver Johannes Oberhumer
Copyright (C) 2006 Markus Franz Xaver Johannes Oberhumer
@@ -38,6 +41,21 @@
*/
+#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 "lzo/lzoconf.h"
#include <stdio.h>