aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Eklöf <daniel@ekloef.se>2021-01-01 22:35:55 +0000
committerDaniel Eklöf <daniel@ekloef.se>2021-01-01 22:35:55 +0000
commit128883fa05336fa16d5918d9308fdc45616d7daf (patch)
treed326f8c150ce87c0a2f8a4f5e69d777a020ff363
parentbox-drawing: do not inline any of the utility functions (diff)
box-drawing: guard GCC pragma with #if defined(__GNUC__)
-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;