Skip to content

Commit

Permalink
Fix no-libc build on "other" platforms
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
athre0z committed Oct 24, 2022
1 parent 5981920 commit 5113495
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/API/Process.c
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,10 @@
***************************************************************************************************/

#include <Zycore/Defines.h>
#include <Zycore/API/Process.h>

#ifndef ZYAN_NO_LIBC

#if defined(ZYAN_WINDOWS)
#if defined(ZYAN_KERNEL)
# include <wdm.h>
Expand All @@ -36,9 +40,6 @@
#else
# error "Unsupported platform detected"
#endif
#include <Zycore/API/Process.h>

#ifndef ZYAN_NO_LIBC

/* ============================================================================================== */
/* Exported functions */
Expand Down

0 comments on commit 5113495

Please sign in to comment.