Skip to content

Commit 4784eac

Browse files
committed
Fixes #337 ("New -Wundef warning")
1 parent a06e8bd commit 4784eac

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

include/boost/container/detail/workaround.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -249,12 +249,12 @@ namespace boost {
249249
#define BOOST_CONTAINER_NOVTABLE
250250
#endif
251251

252-
#if (defined(BOOST_CLANG) && BOOST_CLANG_VERSION >= 30600)
252+
#if defined(BOOST_CLANG) && defined(BOOST_CLANG_VERSION) && (BOOST_CLANG_VERSION >= 30600)
253253

254254
#define BOOST_CONTAINER_UNROLL_PRAGMA(x) _Pragma(#x)
255255
#define BOOST_CONTAINER_UNROLL(n) BOOST_CONTAINER_UNROLL_PRAGMA(unroll n)
256256

257-
#elif (defined(BOOST_GCC) && BOOST_GCC_VERSION >= 150000)
257+
#elif defined(BOOST_GCC) && defined(BOOST_GCC_VERSION) && (BOOST_GCC_VERSION >= 150000)
258258
// GCC < 15 emits an unsuppressible "ignoring loop annotation" warning
259259
// when the optimizer decides it cannot unroll a loop (complex iterators,
260260
// unknown trip count, etc.). This was fixed in GCC 15.

0 commit comments

Comments
 (0)