tnintemann / rpms / boost

Forked from rpms/boost 3 years ago
Clone

Blame SOURCES/boost-1.53.0-attribute.patch

5dffee
diff -urp boost_1_48_0~/boost/config/compiler/gcc.hpp boost_1_48_0/boost/config/compiler/gcc.hpp
5dffee
--- boost_1_48_0~/boost/config/compiler/gcc.hpp	2012-01-16 16:15:14.643239525 +0100
5dffee
+++ boost_1_48_0/boost/config/compiler/gcc.hpp	2012-01-16 16:21:24.072247987 +0100
5dffee
@@ -120,13 +120,13 @@
5dffee
      // _WIN32 or one of its variant spellings. Note that Cygwin is a POSIX environment,
5dffee
      // so does not define _WIN32 or its variants.
5dffee
 #    define BOOST_HAS_DECLSPEC
5dffee
-#    define BOOST_SYMBOL_EXPORT __attribute__((dllexport))
5dffee
-#    define BOOST_SYMBOL_IMPORT __attribute__((dllimport))
5dffee
+#    define BOOST_SYMBOL_EXPORT __attribute__((__dllexport__))
5dffee
+#    define BOOST_SYMBOL_IMPORT __attribute__((__dllimport__))
5dffee
 #  else
5dffee
-#    define BOOST_SYMBOL_EXPORT __attribute__((visibility("default")))
5dffee
+#    define BOOST_SYMBOL_EXPORT __attribute__((__visibility__("default")))
5dffee
 #    define BOOST_SYMBOL_IMPORT
5dffee
 #  endif
5dffee
-#  define BOOST_SYMBOL_VISIBLE __attribute__((visibility("default")))
5dffee
+#  define BOOST_SYMBOL_VISIBLE __attribute__((__visibility__("default")))
5dffee
 #else
5dffee
 // config/platform/win32.hpp will define BOOST_SYMBOL_EXPORT, etc., unless already defined  
5dffee
 #  define BOOST_SYMBOL_EXPORT
5dffee
diff -urp boost_1_48_0~/boost/gil/gil_config.hpp boost_1_48_0/boost/gil/gil_config.hpp
5dffee
--- boost_1_48_0~/boost/gil/gil_config.hpp	2012-01-16 16:15:29.883239865 +0100
5dffee
+++ boost_1_48_0/boost/gil/gil_config.hpp	2012-01-16 16:17:49.096243036 +0100
5dffee
@@ -32,7 +32,7 @@
5dffee
 #if   defined(_MSC_VER)
5dffee
 #    define GIL_FORCEINLINE __forceinline
5dffee
 #elif defined(__GNUC__) && __GNUC__ > 3
5dffee
-#    define GIL_FORCEINLINE inline __attribute__ ((always_inline))
5dffee
+#    define GIL_FORCEINLINE inline __attribute__ ((__always_inline__))
5dffee
 #else
5dffee
 #    define GIL_FORCEINLINE inline
5dffee
 #endif
5dffee
diff -urp boost_1_48_0~/boost/optional/optional.hpp boost_1_48_0/boost/optional/optional.hpp
5dffee
--- boost_1_48_0~/boost/optional/optional.hpp	2012-01-16 16:15:29.743239804 +0100
5dffee
+++ boost_1_48_0/boost/optional/optional.hpp	2012-01-16 16:17:47.488242994 +0100
5dffee
@@ -127,7 +127,7 @@ class aligned_storage
5dffee
     union
5dffee
     // This works around GCC warnings about breaking strict aliasing rules when casting storage address to T*
5dffee
 #if defined(BOOST_OPTIONAL_DETAIL_USE_ATTRIBUTE_MAY_ALIAS)
5dffee
-    __attribute__((may_alias))
5dffee
+    __attribute__((__may_alias__))
5dffee
 #endif
5dffee
     dummy_u
5dffee
     {
5dffee
diff -up /home/ant/rpm/BUILD/boost_1_53_0/boost/random/detail/integer_log2.hpp\~ /home/ant/rpm/BUILD/boost_1_53_0/boost/random/detail/integer_log2.hpp
5dffee
--- boost_1_53_0/boost/random/detail/integer_log2.hpp~	2013-01-25 18:06:07.000000000 +0100
5dffee
+++ boost_1_53_0/boost/random/detail/integer_log2.hpp	2013-02-07 17:37:53.000000000 +0100
5dffee
@@ -27,7 +27,7 @@ namespace detail {
5dffee
 #elif defined(BOOST_MSVC)
5dffee
 #define BOOST_RANDOM_DETAIL_CONSTEXPR __forceinline
5dffee
 #elif defined(__GNUC__) && __GNUC__ >= 4
5dffee
-#define BOOST_RANDOM_DETAIL_CONSTEXPR inline __attribute__((const)) __attribute__((always_inline))
5dffee
+#define BOOST_RANDOM_DETAIL_CONSTEXPR inline __attribute__((__const__)) __attribute__((__always_inline__))
5dffee
 #else
5dffee
 #define BOOST_RANDOM_DETAIL_CONSTEXPR inline
5dffee
 #endif