diff options
author | Brad King <brad.king@kitware.com> | 2011-11-12 12:59:53 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2011-11-12 13:00:13 (GMT) |
commit | 553acec76b2dc333a418e0218d65dacb76e30a81 (patch) | |
tree | 96436b4870ea7f6c00b5d43ef1973c89d367b0c7 | |
parent | 831badeca25a8eca9e92dbbb181ea69b58112b2c (diff) | |
download | CMake-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.h | 4 |
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." |