diff --git a/Makefile b/Makefile index 9a6b9ef..0579ccb 100644 --- a/Makefile +++ b/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) diff --git a/auto/src/glew_head.c b/auto/src/glew_head.c index 9a3802f..96fdb6a 100644 --- a/auto/src/glew_head.c +++ b/auto/src/glew_head.c @@ -6,7 +6,15 @@ #if defined(GLEW_OSMESA) # define GLAPI extern +# ifndef APIENTRY +# define APIENTRY +# define GLEW_APIENTRY_DEFINED +# endif # include +# ifdef GLEW_APIENTRY_DEFINED +# undef APIENTRY +# undef GLEW_APIENTRY_DEFINED +# endif #elif defined(GLEW_EGL) # include #elif defined(_WIN32)