Working on fixing stb

This commit is contained in:
2021-09-30 11:44:58 -07:00
parent fd6b9e5c84
commit 7ce46d3e44
7 changed files with 18 additions and 24 deletions

View File

@ -8,12 +8,10 @@ file(GLOB_RECURSE SOURCES *.c)
add_library(src STATIC ${SOURCES})
target_include_directories(src PUBLIC ${CMAKE_CURRENT_LIST_DIR})
target_link_libraries(src PUBLIC
glfw
cglm
stb
cglm
duktape
glad_gl_core_33
stb
)
# Set up flags

View File

@ -7,7 +7,6 @@
// Static Libs
#include <glad/gl.h>
#include <GLFW/glfw3.h>
#include <duktape.h>
#include <cglm/cglm.h>
#include <stb_image.h>
@ -26,12 +25,7 @@
#if defined(_WIN32) || defined(_WIN64)
// Windows Fixes
# define strtok_r strtok_s
#if defined(Sleep)
# define sleep(n) Sleep(n)
#else
# define sleep(n) _sleep(n)
#endif
# define sleep(n) Sleep(n)
#else
// Unix Fixes
#include <unistd.h>