Browse Source

Add missing guards around push/pop pragmas

This matches all the other places where we silence Windows warnings.
bobsayshilol 9 months ago
parent
commit
bb308b3ff4
1 changed files with 8 additions and 3 deletions
  1. 8 3
      src/unicode.cpp

+ 8 - 3
src/unicode.cpp

@@ -1,10 +1,15 @@
-#pragma warning(push)
-#pragma warning(disable: 4245)
+#if defined(GB_SYSTEM_WINDOWS)
+	#pragma warning(push)
+	#pragma warning(disable: 4245)
+#endif
 
 
 extern "C" {
 extern "C" {
 #include "utf8proc/utf8proc.c"
 #include "utf8proc/utf8proc.c"
 }
 }
-#pragma warning(pop)
+
+#if defined(GB_SYSTEM_WINDOWS)
+	#pragma warning(pop)
+#endif
 
 
 
 
 gb_internal bool rune_is_letter(Rune r) {
 gb_internal bool rune_is_letter(Rune r) {