summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2011-11-12 12:59:53 (GMT)
committerBrad King <brad.king@kitware.com>2011-11-12 13:00:13 (GMT)
commit553acec76b2dc333a418e0218d65dacb76e30a81 (patch)
tree96436b4870ea7f6c00b5d43ef1973c89d367b0c7
parent831badeca25a8eca9e92dbbb181ea69b58112b2c (diff)
downloadCMake-553acec76b2dc333a418e0218d65dacb76e30a81.zip
CMake-553acec76b2dc333a418e0218d65dacb76e30a81.tar.gz
CMake-553acec76b2dc333a418e0218d65dacb76e30a81.tar.bz2
KWIML: Avoid redefining _CRT_SECURE_NO_DEPRECATE in test.h
If the including project defines this macro do not re-define it in the test header.
-rw-r--r--test/test.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/test/test.h b/test/test.h
index 8abb195..b87a0e7 100644
--- a/test/test.h
+++ b/test/test.h
@@ -28,7 +28,9 @@
#define KWIML_HEADER1(x) <x>
/* Quiet MS standard library deprecation warnings. */
-#define _CRT_SECURE_NO_DEPRECATE
+#ifndef _CRT_SECURE_NO_DEPRECATE
+# define _CRT_SECURE_NO_DEPRECATE
+#endif
#else
# error "test.h included multiple times."