aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--box-drawing.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/box-drawing.c b/box-drawing.c
index ebbdfede..30baf6ee 100644
--- a/box-drawing.c
+++ b/box-drawing.c
@@ -15,7 +15,9 @@
#define LIGHT 1.0
#define HEAVY 2.0
-#pragma GCC optimize("Os")
+#if defined(__GNUC__)
+ #pragma GCC optimize("Os")
+#endif
struct buf {
uint8_t *data;