Small newlib fixes

This commit is contained in:
Andrea Palmatè 2024-04-16 18:37:22 +02:00
parent 6e61bfcaaf
commit 05a32db31b
2 changed files with 11 additions and 1 deletions

View File

@ -167,7 +167,11 @@ endif()
if (GLFW_BUILD_OS4)
target_compile_options(glfw PRIVATE "-DGL4ES" "-gstabs")
target_link_libraries(glfw PRIVATE "-lGL")
if (CLIB4)
target_link_libraries(glfw PRIVATE "-lGL")
else()
target_link_libraries(glfw PRIVATE "-lgl4es -ldl")
endif()
endif()
if (GLFW_BUILD_COCOA)

View File

@ -29,9 +29,15 @@
#include "internal.h"
#ifndef CLIB4
#undef __STRICT_ANSI__
#endif
#include <stdlib.h>
#include <string.h>
#include <stdio.h>
#include <stdarg.h>
#include <unistd.h>
extern struct Library *DOSBase;
extern struct DOSIFace *IDOS;