summaryrefslogtreecommitdiffstats
path: root/src/if_perl.xs
diff options
context:
space:
mode:
Diffstat (limited to 'src/if_perl.xs')
-rw-r--r--src/if_perl.xs5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/if_perl.xs b/src/if_perl.xs
index 0241c319fe..08e0e02f32 100644
--- a/src/if_perl.xs
+++ b/src/if_perl.xs
@@ -145,6 +145,11 @@
# define EXTERN_C
#endif
+// Suppress Infinite warnings when compiling XS modules under macOS 12 Monterey.
+#if defined(__clang__) && defined(__clang_major__) && __clang_major__ > 11
+#pragma clang diagnostic ignored "-Wcompound-token-split-by-macro"
+#endif
+
/* Compatibility hacks over */
static PerlInterpreter *perl_interp = NULL;