COMP: Suppress Microsoft deprecation warnings when building kwsys .c and .cxx files. This way, other projects that include kwsys will not see the warnings in kwsys .c and .cxx files, but they can still see the warnings in their own source files if they want to...

This commit is contained in:
David Cole 2007-08-15 09:25:58 -04:00
parent 911613edf0
commit bdeb4ad217
1 changed files with 8 additions and 0 deletions

View File

@ -22,6 +22,14 @@
# define kwsysEXPORT @KWSYS_NAMESPACE@_EXPORT # define kwsysEXPORT @KWSYS_NAMESPACE@_EXPORT
#endif #endif
/* If we are building a kwsys .c or .cxx file, suppress the Microsoft
deprecation warnings. */
#if defined(KWSYS_NAMESPACE)
# define _CRT_SECURE_NO_DEPRECATE
# define _CRT_NONSTDC_NO_DEPRECATE
# define _SCL_SECURE_NO_DEPRECATE
#endif
/* Whether Large File Support is requested. */ /* Whether Large File Support is requested. */
#define @KWSYS_NAMESPACE@_LFS_REQUESTED @KWSYS_LFS_REQUESTED@ #define @KWSYS_NAMESPACE@_LFS_REQUESTED @KWSYS_LFS_REQUESTED@