mirror of
https://github.com/nim-lang/Nim.git
synced 2026-04-19 05:50:30 +00:00
* 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:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user