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
commit 3a1109a53b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -75,7 +75,8 @@ __AVR__
#endif #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 # define _GNU_SOURCE 1
#endif #endif