--- mruby-3.2.0/include/mruby/throw.h.orig	2023-02-24 11:51:12.000000000 +0100
+++ mruby-3.2.0/include/mruby/throw.h	2023-11-25 21:46:27.352438200 +0100
@@ -33,7 +33,7 @@
 #if defined(__APPLE__) || defined(__FreeBSD__) || defined(__NetBSD__) || defined(__OpenBSD__)
 #define MRB_SETJMP _setjmp
 #define MRB_LONGJMP _longjmp
-#elif defined(__MINGW64__) && defined(__GNUC__) && __GNUC__ >= 4
+#elif defined(__MINGW64__) && defined(__GNUC__) && __GNUC__ >= 4 && !defined(__clang__)
 #define MRB_SETJMP __builtin_setjmp
 #define MRB_LONGJMP __builtin_longjmp
 #else
