Skip to content

Commit 6c958cf

Browse files
authored
Fix no-libc build on "other" platforms (#58)
The `ifdef` in `Process.c` previously didn't include the header selection, resulting in "Unsupported platform detected" on non-Windows/non-Unix platforms like Emscripten.
1 parent 5981920 commit 6c958cf

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/API/Process.c

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,10 @@
2525
***************************************************************************************************/
2626

2727
#include <Zycore/Defines.h>
28+
#include <Zycore/API/Process.h>
29+
30+
#ifndef ZYAN_NO_LIBC
31+
2832
#if defined(ZYAN_WINDOWS)
2933
#if defined(ZYAN_KERNEL)
3034
# include <wdm.h>
@@ -36,9 +40,6 @@
3640
#else
3741
# error "Unsupported platform detected"
3842
#endif
39-
#include <Zycore/API/Process.h>
40-
41-
#ifndef ZYAN_NO_LIBC
4243

4344
/* ============================================================================================== */
4445
/* Exported functions */

0 commit comments

Comments
 (0)