Skip to content

Commit

Permalink
Exclusion of Glfw wrapper on the standard library on Termux build.
Browse files Browse the repository at this point in the history
  • Loading branch information
nthnn committed Dec 13, 2024
1 parent c7b0785 commit 21fc476
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions std/n8std/GLFW.cc
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@
#include <n8/ast/TerminativeSignal.hpp>
#include <GLFW/glfw3.h>

#ifndef __TERMUX__

N8_FUNC(glfw_init) {
return DynamicObject(glfwInit() == 1);
}
Expand All @@ -29,3 +31,5 @@ N8_FUNC(glfw_terminate) {
glfwTerminate();
return DynamicObject();
}

#endif
4 changes: 4 additions & 0 deletions std/n8std/GLFW.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,13 @@

N8_LIB_START

#ifndef __TERMUX__

N8_FUNC(glfw_init);
N8_FUNC(glfw_terminate);

#endif

N8_LIB_END

#ifdef __clang__
Expand Down

0 comments on commit 21fc476

Please sign in to comment.