glextensions.h: simplify #if-ery to avoid conflict

The prior #if-ery was needlessly confusing; and most of it was
redundant anyway.

Change-Id: I82da1b38c08b93b9dc2220dd7b15ecb7dcc002af
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
bb10
Edward Welbourne 2016-10-19 14:59:46 +02:00
parent c4a21708ed
commit 2d3bbd7f17
1 changed files with 4 additions and 12 deletions

View File

@ -78,19 +78,11 @@ glMapBuffer
glUnmapBuffer
*/
#ifndef Q_OS_MAC
# ifndef APIENTRYP
# ifdef APIENTRY
# undef APIENTRYP
# define APIENTRYP APIENTRY *
# else
# define APIENTRY
# define APIENTRYP *
# endif
# endif
#else
#ifndef APIENTRY
# define APIENTRY
# define APIENTRYP *
#endif
#ifndef APIENTRYP
# define APIENTRYP APIENTRY *
#endif
#ifndef GL_VERSION_1_2