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