mirror of
https://github.com/Perlmint/glew-cmake.git
synced 2024-11-22 06:35:07 +00:00
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:
commit
8d3ac6aca3
2
Makefile
2
Makefile
@ -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)
|
||||
|
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user