mirror of
https://github.com/janet-lang/janet
synced 2025-01-24 22:26:52 +00:00
Add emscripten check to features.h.
This commit is contained in:
parent
ea2811f14f
commit
6c4ed0409d
@ -30,7 +30,7 @@
|
||||
#endif
|
||||
|
||||
/* Needed for realpath on linux */
|
||||
#if !defined(_XOPEN_SOURCE) && defined(__linux__)
|
||||
#if !defined(_XOPEN_SOURCE) && (defined(__linux__) || defined(__EMSCRIPTEN__))
|
||||
#define _XOPEN_SOURCE 500
|
||||
#endif
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user