From ac8864bc59449e61e1f6ee08321bd2647f34c538 Mon Sep 17 00:00:00 2001 From: William S Fulton Date: Sun, 31 Jul 2022 16:15:00 +0100 Subject: [PATCH] ruby --- Lib/ruby/rubyhead.swg | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Lib/ruby/rubyhead.swg b/Lib/ruby/rubyhead.swg index 06c430bf6..e4d9e2147 100644 --- a/Lib/ruby/rubyhead.swg +++ b/Lib/ruby/rubyhead.swg @@ -1,5 +1,6 @@ #if __GNUC__ >= 7 #pragma GCC diagnostic push +#if defined(__cplusplus) #pragma GCC diagnostic ignored "-Wregister" #if __GNUC__ >= 10 #pragma GCC diagnostic ignored "-Wvolatile" @@ -8,6 +9,7 @@ #endif #endif #endif +#endif #include