Преглед на файлове

Add missing guards around push/pop pragmas

This matches all the other places where we silence Windows warnings.
bobsayshilol преди 11 месеца
родител
ревизия
73b6461710
променени са 1 файла, в които са добавени 8 реда и са изтрити 3 реда
  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) {