Merge https://github.com/nigels-com/glew.git into master HEAD at Sat Aug 24 10:11:14 GMT 2024

This commit is contained in:
Gyusun 2024-08-24 10:11:14 +00:00
commit 8d3ac6aca3
2 changed files with 9 additions and 1 deletions

View File

@ -31,7 +31,7 @@
include config/version
SHELL = /bin/sh
SYSTEM ?= $(shell config/config.guess | cut -d - -f 3 | sed -e 's/[0-9\.]//g;')
SYSTEM ?= $(shell config/config.guess | cut -d - -f 3 | sed -e 's/\.//g' -e 's/[0-9]\{1,\}.*//')
SYSTEM.SUPPORTED = $(shell test -f config/Makefile.$(SYSTEM) && echo 1)
ifeq ($(SYSTEM.SUPPORTED), 1)

View File

@ -6,7 +6,15 @@
#if defined(GLEW_OSMESA)
# define GLAPI extern
# ifndef APIENTRY
# define APIENTRY
# define GLEW_APIENTRY_DEFINED
# endif
# include <GL/osmesa.h>
# ifdef GLEW_APIENTRY_DEFINED
# undef APIENTRY
# undef GLEW_APIENTRY_DEFINED
# endif
#elif defined(GLEW_EGL)
# include <GL/eglew.h>
#elif defined(_WIN32)