diff options
Diffstat (limited to 'devel/simgear/files/patch-simgear-structure-SGAtomic.hxx')
-rw-r--r-- | devel/simgear/files/patch-simgear-structure-SGAtomic.hxx | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/devel/simgear/files/patch-simgear-structure-SGAtomic.hxx b/devel/simgear/files/patch-simgear-structure-SGAtomic.hxx new file mode 100644 index 000000000000..d8e813487dd8 --- /dev/null +++ b/devel/simgear/files/patch-simgear-structure-SGAtomic.hxx @@ -0,0 +1,17 @@ +Work around: + +SGAtomic.cxx:48:5: error: ISO C++17 does not allow 'register' storage class specifier [-Wregister] + +to fix build on i386 as Simgear uses CMAKE_CXX_STANDARD=17 + +--- simgear/structure/SGAtomic.hxx.orig 2025-06-30 15:01:54 UTC ++++ simgear/structure/SGAtomic.hxx +@@ -25,7 +25,7 @@ + defined(__x86_64__) + // No need to include something. Is a Compiler API ... + # define SGATOMIC_USE_GCC4_BUILTINS +-#elif defined(__GNUC__) && defined(__i386__) ++#elif (__cplusplus < 201703L) && defined(__GNUC__) && defined(__i386__) + # define SGATOMIC_USE_LIBRARY_FUNCTIONS + #elif defined(__sgi) && defined(_COMPILER_VERSION) && (_COMPILER_VERSION>=730) + // No need to include something. Is a Compiler API ... |