Pascal Peridont 7 years ago
parent
commit
74d56d6a80
2 changed files with 8 additions and 2 deletions
  1. 5 1
      libs/sdl/GLImports.h
  2. 3 1
      src/std/process.c

+ 5 - 1
libs/sdl/GLImports.h

@@ -54,7 +54,11 @@ GL_IMPORT(glGetQueryObjectui64v, GETQUERYOBJECTUI64V);
 GL_IMPORT(glQueryCounter, QUERYCOUNTER);
 
 #endif
-#ifdef _WIN32
+#if defined(_WIN32) || defined(HL_NX)
 GL_IMPORT(glBlendEquation, BLENDEQUATION);
 GL_IMPORT(glActiveTexture, ACTIVETEXTURE);
 #endif
+
+#if defined(HL_NX)
+GL_IMPORT(glClearDepthf, CLEARDEPTHF);
+#endif

+ 3 - 1
src/std/process.c

@@ -21,7 +21,9 @@
  */
 #include <hl.h>
 
-#ifndef HL_WIN
+#if defined(HL_CONSOLE)
+#	include <posix/posix.h>
+#elif !defined(HL_WIN)
 #	include <sys/types.h>
 #	include <unistd.h>
 #	include <errno.h>