From 54e2fd14ae30e649ad39fe03031bc6993e833141 Mon Sep 17 00:00:00 2001 From: Ivan Leben Date: Tue, 13 May 2008 04:56:06 +0000 Subject: [PATCH] * clutter/cogl/gl/cogl-defines.h.in: Fix GL function prototypes on OS X by #definining APIENTRY and APIENTRYP if missing. --- ChangeLog | 6 ++++++ clutter/cogl/gl/cogl-defines.h.in | 8 ++++++++ 2 files changed, 14 insertions(+) diff --git a/ChangeLog b/ChangeLog index 8389fa4ab..2acbab3c2 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2008-05-13 Ivan Leben + + * clutter/cogl/gl/cogl-defines.h.in: + Fix GL function prototypes on OS X by #definining APIENTRY and + APIENTRYP if missing. + 2008-05-12 Ivan Leben * clutter/cogl/gl/cogl-defines.h.in: diff --git a/clutter/cogl/gl/cogl-defines.h.in b/clutter/cogl/gl/cogl-defines.h.in index 7b29b937b..487467752 100644 --- a/clutter/cogl/gl/cogl-defines.h.in +++ b/clutter/cogl/gl/cogl-defines.h.in @@ -707,6 +707,14 @@ typedef GLuint COGLuint; /* Extension function prototypes */ +#ifndef APIENTRY +#define APIENTRY +#endif + +#ifndef APIENTRYP +#define APIENTRYP APIENTRY * +#endif + typedef void (APIENTRYP COGL_PFNGLGENRENDERBUFFERSEXTPROC) (GLsizei n,