summary refs log tree commit diff stats
diff options
context:
space:
mode:
-rw-r--r--lib/nimbase.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/nimbase.h b/lib/nimbase.h
index e480c55fd..a83bd3006 100644
--- a/lib/nimbase.h
+++ b/lib/nimbase.h
@@ -75,7 +75,8 @@ __AVR__
 #endif
 /* ------------------------------------------------------------------------- */
 
-#if defined(__GNUC__)
+#if defined(__GNUC__) && !defined(__ZEPHYR__)
+/* Zephyr does some magic in it's headers that override the GCC stdlib. This breaks that. */
 #  define _GNU_SOURCE 1
 #endif