initial fix for compiling Nim on Zephyr RTOS (issue #18684) (#18685)

* initial fix for compiling Nim on Zephyr RTOS (issue  #18684)

Co-authored-by: Jaremy J. Creechley <jaremy.creechley@wavebaselabs.com>
This commit is contained in:
Jaremy Creechley
2021-08-12 23:57:29 -07:00
committed by GitHub
parent 883c04d444
commit 3a1109a53b

View File

@@ -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