From 21fc476fccf075424b65abb7af62b9fa4dfa1e6f Mon Sep 17 00:00:00 2001 From: Nathanne Isip Date: Fri, 13 Dec 2024 23:17:50 +0800 Subject: [PATCH] Exclusion of Glfw wrapper on the standard library on Termux build. --- std/n8std/GLFW.cc | 4 ++++ std/n8std/GLFW.hpp | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/std/n8std/GLFW.cc b/std/n8std/GLFW.cc index 9913e8b..9036d7e 100644 --- a/std/n8std/GLFW.cc +++ b/std/n8std/GLFW.cc @@ -21,6 +21,8 @@ #include #include +#ifndef __TERMUX__ + N8_FUNC(glfw_init) { return DynamicObject(glfwInit() == 1); } @@ -29,3 +31,5 @@ N8_FUNC(glfw_terminate) { glfwTerminate(); return DynamicObject(); } + +#endif diff --git a/std/n8std/GLFW.hpp b/std/n8std/GLFW.hpp index 2533d74..3d5ec09 100644 --- a/std/n8std/GLFW.hpp +++ b/std/n8std/GLFW.hpp @@ -28,9 +28,13 @@ N8_LIB_START +#ifndef __TERMUX__ + N8_FUNC(glfw_init); N8_FUNC(glfw_terminate); +#endif + N8_LIB_END #ifdef __clang__