forked from boostorg/detail
Enabled #pragma once for all compilers that support it, not only MSVC.
[SVN r85866]
This commit is contained in:
@@ -1,12 +1,6 @@
|
|||||||
#ifndef BOOST_DETAIL_INTERLOCKED_HPP_INCLUDED
|
#ifndef BOOST_DETAIL_INTERLOCKED_HPP_INCLUDED
|
||||||
#define 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
|
// boost/detail/interlocked.hpp
|
||||||
//
|
//
|
||||||
@@ -19,6 +13,11 @@
|
|||||||
|
|
||||||
#include <boost/config.hpp>
|
#include <boost/config.hpp>
|
||||||
|
|
||||||
|
// MS compatible compilers support #pragma once
|
||||||
|
#ifdef BOOST_HAS_PRAGMA_ONCE
|
||||||
|
#pragma once
|
||||||
|
#endif
|
||||||
|
|
||||||
#if defined( BOOST_USE_WINDOWS_H )
|
#if defined( BOOST_USE_WINDOWS_H )
|
||||||
|
|
||||||
# include <windows.h>
|
# include <windows.h>
|
||||||
|
Reference in New Issue
Block a user