mirror of
https://github.com/Perlmint/glew-cmake.git
synced 2024-11-26 00:21:57 +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
|
include config/version
|
||||||
|
|
||||||
SHELL = /bin/sh
|
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)
|
SYSTEM.SUPPORTED = $(shell test -f config/Makefile.$(SYSTEM) && echo 1)
|
||||||
|
|
||||||
ifeq ($(SYSTEM.SUPPORTED), 1)
|
ifeq ($(SYSTEM.SUPPORTED), 1)
|
||||||
|
@ -6,7 +6,15 @@
|
|||||||
|
|
||||||
#if defined(GLEW_OSMESA)
|
#if defined(GLEW_OSMESA)
|
||||||
# define GLAPI extern
|
# define GLAPI extern
|
||||||
|
# ifndef APIENTRY
|
||||||
|
# define APIENTRY
|
||||||
|
# define GLEW_APIENTRY_DEFINED
|
||||||
|
# endif
|
||||||
# include <GL/osmesa.h>
|
# include <GL/osmesa.h>
|
||||||
|
# ifdef GLEW_APIENTRY_DEFINED
|
||||||
|
# undef APIENTRY
|
||||||
|
# undef GLEW_APIENTRY_DEFINED
|
||||||
|
# endif
|
||||||
#elif defined(GLEW_EGL)
|
#elif defined(GLEW_EGL)
|
||||||
# include <GL/eglew.h>
|
# include <GL/eglew.h>
|
||||||
#elif defined(_WIN32)
|
#elif defined(_WIN32)
|
||||||
|
Loading…
Reference in New Issue
Block a user