aboutsummaryrefslogtreecommitdiff
path: root/src/unicode.cpp
diff options
context:
space:
mode:
authorbobsayshilol <bobsayshilol@live.co.uk>2024-10-27 20:23:50 +0000
committerbobsayshilol <bobsayshilol@live.co.uk>2024-10-27 22:02:34 +0000
commitbb308b3ff4a88fa2ab17aef087ec91b46d9a3768 (patch)
treeccb86bb9a7c35c93c4273daeee3f4c420a355d57 /src/unicode.cpp
parentc1496ab6c055974ac401865bdca87a4fc0a76ea3 (diff)
Add missing guards around push/pop pragmas
This matches all the other places where we silence Windows warnings.
Diffstat (limited to 'src/unicode.cpp')
-rw-r--r--src/unicode.cpp11
1 files changed, 8 insertions, 3 deletions
diff --git a/src/unicode.cpp b/src/unicode.cpp
index ef95cde71..cb9fb12ab 100644
--- a/src/unicode.cpp
+++ b/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) {