activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tab...@apache.org
Subject svn commit: r1067992 - in /activemq/activemq-cpp/trunk/activemq-cpp/src/main: activemq/util/Config.h decaf/util/Config.h
Date Mon, 07 Feb 2011 16:04:38 GMT
Author: tabish
Date: Mon Feb  7 16:04:38 2011
New Revision: 1067992

URL: http://svn.apache.org/viewvc?rev=1067992&view=rev
Log:
Enable the secure checked iterators on Windows and disable the warning telling you to use
them.

Modified:
    activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/util/Config.h
    activemq/activemq-cpp/trunk/activemq-cpp/src/main/decaf/util/Config.h

Modified: activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/util/Config.h
URL: http://svn.apache.org/viewvc/activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/util/Config.h?rev=1067992&r1=1067991&r2=1067992&view=diff
==============================================================================
--- activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/util/Config.h (original)
+++ activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/util/Config.h Mon Feb  7 16:04:38
2011
@@ -69,6 +69,12 @@
         #ifndef HAVE_WINDOWS_H
             #define HAVE_WINDOWS_H
         #endif
+        #ifndef _SECURE_SCL
+            #define _SECURE_SCL 1
+        #endif
+        #ifndef _SCL_SECURE_NO_WARNINGS
+            #define _SCL_SECURE_NO_WARNINGS 1
+        #endif
     #else
         #ifndef HAVE_UUID_UUID_H
             #define HAVE_UUID_UUID_H

Modified: activemq/activemq-cpp/trunk/activemq-cpp/src/main/decaf/util/Config.h
URL: http://svn.apache.org/viewvc/activemq/activemq-cpp/trunk/activemq-cpp/src/main/decaf/util/Config.h?rev=1067992&r1=1067991&r2=1067992&view=diff
==============================================================================
--- activemq/activemq-cpp/trunk/activemq-cpp/src/main/decaf/util/Config.h (original)
+++ activemq/activemq-cpp/trunk/activemq-cpp/src/main/decaf/util/Config.h Mon Feb  7 16:04:38
2011
@@ -80,6 +80,13 @@
             #pragma warning(disable: 4822)
         #endif
 
+        #ifndef _SECURE_SCL
+            #define _SECURE_SCL 1
+        #endif
+        #ifndef _SCL_SECURE_NO_WARNINGS
+            #define _SCL_SECURE_NO_WARNINGS 1
+        #endif
+
         /* Has windows.h already been included?  If so, our preferences don't matter,
          * but we will still need the winsock things no matter what was included.
          * If not, include a restricted set of windows headers to our tastes.



Mime
View raw message