[client] define GL_GLEXT_PROTOTYPES globally

This commit is contained in:
Geoffrey McRae 2018-12-12 16:53:30 +11:00
parent 61f0577ab2
commit 50c460df5a
6 changed files with 2 additions and 8 deletions

View file

@ -33,6 +33,7 @@ find_package(GMP)
add_definitions(-D BUILD_VERSION='"${BUILD_VERSION}"') add_definitions(-D BUILD_VERSION='"${BUILD_VERSION}"')
add_definitions(-D USE_NETTLE) add_definitions(-D USE_NETTLE)
add_definitions(-D ATOMIC_LOCKING) add_definitions(-D ATOMIC_LOCKING)
add_definitions(-D GL_GLEXT_PROTOTYPES)
include_directories( include_directories(
${PROJECT_SOURCE_DIR} ${PROJECT_SOURCE_DIR}

View file

@ -26,10 +26,7 @@ Place, Suite 330, Boston, MA 02111-1307 USA
#include <string.h> #include <string.h>
#include <assert.h> #include <assert.h>
#define GL_GLEXT_PROTOTYPES
#include <GL/gl.h> #include <GL/gl.h>
//#include <GL/glu.h>
//#include <GL/glx.h>
struct Pixel struct Pixel
{ {

View file

@ -23,7 +23,6 @@ Place, Suite 330, Boston, MA 02111-1307 USA
#include "shader.h" #include "shader.h"
#include "texture.h" #include "texture.h"
#define GL_GLEXT_PROTOTYPES
#include <GL/gl.h> #include <GL/gl.h>
typedef struct EGL_Model EGL_Model; typedef struct EGL_Model EGL_Model;

View file

@ -21,7 +21,6 @@ Place, Suite 330, Boston, MA 02111-1307 USA
#include <stdbool.h> #include <stdbool.h>
#define GL_GLEXT_PROTOTYPES
#include <GL/gl.h> #include <GL/gl.h>
typedef struct EGL_Shader EGL_Shader; typedef struct EGL_Shader EGL_Shader;

View file

@ -22,7 +22,6 @@ Place, Suite 330, Boston, MA 02111-1307 USA
#include <stdbool.h> #include <stdbool.h>
#include "shader.h" #include "shader.h"
#define GL_GLEXT_PROTOTYPES
#include <GL/gl.h> #include <GL/gl.h>
typedef struct EGL_Texture EGL_Texture; typedef struct EGL_Texture EGL_Texture;

View file

@ -26,7 +26,6 @@ Place, Suite 330, Boston, MA 02111-1307 USA
#include <SDL2/SDL_ttf.h> #include <SDL2/SDL_ttf.h>
#define GL_GLEXT_PROTOTYPES
#include <GL/gl.h> #include <GL/gl.h>
#include <GL/glu.h> #include <GL/glu.h>
#include <GL/glx.h> #include <GL/glx.h>