aboutsummaryrefslogtreecommitdiffhomepage
path: root/externals/zycore/src/API/Process.c
diff options
context:
space:
mode:
Diffstat (limited to 'externals/zycore/src/API/Process.c')
-rw-r--r--externals/zycore/src/API/Process.c15
1 files changed, 12 insertions, 3 deletions
diff --git a/externals/zycore/src/API/Process.c b/externals/zycore/src/API/Process.c
index dbda8d1c..88371bd4 100644
--- a/externals/zycore/src/API/Process.c
+++ b/externals/zycore/src/API/Process.c
@@ -25,14 +25,21 @@
***************************************************************************************************/
#include <Zycore/Defines.h>
-#if defined(ZYAN_WINDOWS)
-# include <windows.h>
+#include <Zycore/API/Process.h>
+
+#ifndef ZYAN_NO_LIBC
+
+#if defined(ZYAN_WINDOWS)
+#if defined(ZYAN_KERNEL)
+# include <wdm.h>
+#else
+# include <windows.h>
+#endif
#elif defined(ZYAN_POSIX)
# include <sys/mman.h>
#else
# error "Unsupported platform detected"
#endif
-#include <Zycore/API/Process.h>
/* ============================================================================================== */
/* Exported functions */
@@ -66,3 +73,5 @@ ZyanStatus ZyanProcessFlushInstructionCache(void* address, ZyanUSize size)
/* ---------------------------------------------------------------------------------------------- */
/* ============================================================================================== */
+
+#endif /* ZYAN_NO_LIBC */