]> git.proxmox.com Git - ceph.git/blobdiff - ceph/src/boost/libs/log/build/log-platform-config.jam
import quincy beta 17.1.0
[ceph.git] / ceph / src / boost / libs / log / build / log-platform-config.jam
index cee01cc1004b8be99755311771d392acebedd3ac..16af8cb3460784c3d58421e068004b626ba6d830 100644 (file)
@@ -20,7 +20,18 @@ project.pop-current ;
 
 rule set-platform-defines ( properties * )
 {
-    local result = ;
+    local result ;
+
+    if <target-os>windows in $(properties)
+    {
+        # Disable warnings about using 'insecure' standard C functions.
+        # These affect MSVC C/C++ library headers, which are used by various compilers. Define them universally on Windows to avoid
+        # duplicating them for every compiler in every jamfile.
+        result += <define>_SCL_SECURE_NO_WARNINGS ;
+        result += <define>_SCL_SECURE_NO_DEPRECATE ;
+        result += <define>_CRT_SECURE_NO_WARNINGS ;
+        result += <define>_CRT_SECURE_NO_DEPRECATE ;
+    }
 
     if ( <target-os>windows in $(properties) ) || ( <target-os>cygwin in $(properties) )
     {