Răsfoiți Sursa

Add missing guards around push/pop pragmas

This matches all the other places where we silence Windows warnings.
bobsayshilol 11 luni în urmă
părinte
comite
73b6461710
1 a modificat fișierele cu 8 adăugiri și 3 ștergeri
  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" {
 #include "utf8proc/utf8proc.c"
 }
-#pragma warning(pop)
+
+#if defined(GB_SYSTEM_WINDOWS)
+	#pragma warning(pop)
+#endif
 
 
 gb_internal bool rune_is_letter(Rune r) {