Do not define _SCL_SECURE_NO_WARNINGS or _CRT_SECURE_NO_WARNINGS if already defined (such as on the command line), plus related cleanups.

This commit is contained in:
Beman committed 2014-12-10 10:26:49 -05:00
1 parent 66a7a0bfac
commit dcde9463fc
13 files changed
+37 -27

No files matched your search

-3
View File
@@ -9,9 +9,6 @@
//----------------------------------------------------------------------------//
#define _CRT_SECURE_NO_DEPRECATE // quiet VC++ 8.0 foolishness
#define _SCL_SECURE_NO_WARNINGS
#include <boost/endian/detail/disable_warnings.hpp>
#include <iostream>
-2
View File
@@ -7,8 +7,6 @@
//--------------------------------------------------------------------------------------//
#define _CRT_SECURE_NO_WARNINGS
#include <boost/endian/detail/disable_warnings.hpp>
#include <boost/endian/conversion.hpp>
+8 -1
View File
@@ -7,7 +7,14 @@
//--------------------------------------------------------------------------------------//
#define _SCL_SECURE_NO_WARNINGS
#ifndef _SCL_SECURE_NO_WARNINGS
# define _SCL_SECURE_NO_WARNINGS
#endif
#ifndef _CRT_SECURE_NO_WARNINGS
# define _CRT_SECURE_NO_WARNINGS
#endif
#include <boost/endian/conversion.hpp>
#include <boost/endian/buffers.hpp>