Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r85866 - trunk/boost/detail
From: andrey.semashev_at_[hidden]
Date: 2013-09-24 08:56:50


Author: andysem
Date: 2013-09-24 08:56:50 EDT (Tue, 24 Sep 2013)
New Revision: 85866
URL: http://svn.boost.org/trac/boost/changeset/85866

Log:
Enabled #pragma once for all compilers that support it, not only MSVC.

Text files modified:
   trunk/boost/detail/interlocked.hpp | 11 +++++------
   1 files changed, 5 insertions(+), 6 deletions(-)

Modified: trunk/boost/detail/interlocked.hpp
==============================================================================
--- trunk/boost/detail/interlocked.hpp Tue Sep 24 08:49:46 2013 (r85865)
+++ trunk/boost/detail/interlocked.hpp 2013-09-24 08:56:50 EDT (Tue, 24 Sep 2013) (r85866)
@@ -1,12 +1,6 @@
 #ifndef BOOST_DETAIL_INTERLOCKED_HPP_INCLUDED
 #define BOOST_DETAIL_INTERLOCKED_HPP_INCLUDED
 
-// MS compatible compilers support #pragma once
-
-#if defined(_MSC_VER) && (_MSC_VER >= 1020)
-# pragma once
-#endif
-
 //
 // boost/detail/interlocked.hpp
 //
@@ -19,6 +13,11 @@
 
 #include <boost/config.hpp>
 
+// MS compatible compilers support #pragma once
+#ifdef BOOST_HAS_PRAGMA_ONCE
+#pragma once
+#endif
+
 #if defined( BOOST_USE_WINDOWS_H )
 
 # include <windows.h>


Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk