From c0b4959e38c6c27a261beba53d0b062a73963528 Mon Sep 17 00:00:00 2001 From: Daniel James Date: Thu, 20 Mar 2014 23:07:06 +0000 Subject: [PATCH] Only use 'pragma once' when supported. --- include/boost/python/other.hpp | 5 +++-- include/boost/python/ptr.hpp | 4 +++- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/include/boost/python/other.hpp b/include/boost/python/other.hpp index 24a24ad8d..b53443310 100644 --- a/include/boost/python/other.hpp +++ b/include/boost/python/other.hpp @@ -7,9 +7,10 @@ // accompanying file LICENSE_1_0.txt or copy at // http://www.boost.org/LICENSE_1_0.txt) -# pragma once - # include +# if defined(BOOST_HAS_PRAGMA_ONCE) +# pragma once +# endif namespace boost { namespace python { diff --git a/include/boost/python/ptr.hpp b/include/boost/python/ptr.hpp index 287daba45..cb17e7d1b 100644 --- a/include/boost/python/ptr.hpp +++ b/include/boost/python/ptr.hpp @@ -11,9 +11,11 @@ // Copyright (C) 1999, 2000 Jaakko Jarvi (jaakko.jarvi@cs.utu.fi) // Copyright (C) 2001 Peter Dimov +# include +# if defined(BOOST_HAS_PRAGMA_ONCE) # pragma once +# endif -# include # include namespace boost { namespace python {