[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 USE_NETTLE)
add_definitions(-D ATOMIC_LOCKING)
add_definitions(-D GL_GLEXT_PROTOTYPES)
include_directories(
${PROJECT_SOURCE_DIR}

View File

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

View File

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

View File

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

View File

@ -22,7 +22,6 @@ Place, Suite 330, Boston, MA 02111-1307 USA
#include <stdbool.h>
#include "shader.h"
#define GL_GLEXT_PROTOTYPES
#include <GL/gl.h>
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>
#define GL_GLEXT_PROTOTYPES
#include <GL/gl.h>
#include <GL/glu.h>
#include <GL/glx.h>