mirror of
https://github.com/coop-deluxe/sm64coopdx.git
synced 2025-10-30 08:01:01 +00:00
fix GLEW include on OSX
This commit is contained in:
parent
457189bb13
commit
ca4986e82d
2 changed files with 15 additions and 20 deletions
|
|
@ -4,33 +4,28 @@
|
||||||
#include <stdbool.h>
|
#include <stdbool.h>
|
||||||
|
|
||||||
#ifndef _LANGUAGE_C
|
#ifndef _LANGUAGE_C
|
||||||
#define _LANGUAGE_C
|
# define _LANGUAGE_C
|
||||||
#endif
|
#endif
|
||||||
#include <PR/gbi.h>
|
#include <PR/gbi.h>
|
||||||
|
|
||||||
#ifdef __MINGW32__
|
#ifdef __MINGW32__
|
||||||
#define FOR_WINDOWS 1
|
# define FOR_WINDOWS 1
|
||||||
#else
|
#else
|
||||||
#define FOR_WINDOWS 0
|
# define FOR_WINDOWS 0
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if FOR_WINDOWS
|
#if FOR_WINDOWS || defined(OSX_BUILD)
|
||||||
#define GLEW_STATIC
|
# define GLEW_STATIC
|
||||||
#include <GL/glew.h>
|
# include <GL/glew.h>
|
||||||
#include <SDL2/SDL.h>
|
#endif
|
||||||
#define GL_GLEXT_PROTOTYPES 1
|
|
||||||
#include <SDL2/SDL_opengl.h>
|
|
||||||
|
|
||||||
#else
|
|
||||||
#include <SDL2/SDL.h>
|
#include <SDL2/SDL.h>
|
||||||
#define GL_GLEXT_PROTOTYPES 1
|
|
||||||
|
|
||||||
|
#define GL_GLEXT_PROTOTYPES 1
|
||||||
#ifdef USE_GLES
|
#ifdef USE_GLES
|
||||||
#include <SDL2/SDL_opengles2.h>
|
# include <SDL2/SDL_opengles2.h>
|
||||||
#else
|
#else
|
||||||
#include <SDL2/SDL_opengl.h>
|
# include <SDL2/SDL_opengl.h>
|
||||||
#endif
|
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include "../platform.h"
|
#include "../platform.h"
|
||||||
|
|
|
||||||
|
|
@ -5,21 +5,21 @@
|
||||||
#include <assert.h>
|
#include <assert.h>
|
||||||
|
|
||||||
#ifndef _LANGUAGE_C
|
#ifndef _LANGUAGE_C
|
||||||
#define _LANGUAGE_C
|
# define _LANGUAGE_C
|
||||||
#endif
|
#endif
|
||||||
#include <PR/gbi.h>
|
#include <PR/gbi.h>
|
||||||
|
|
||||||
#ifdef __MINGW32__
|
#ifdef __MINGW32__
|
||||||
#define FOR_WINDOWS 1
|
# define FOR_WINDOWS 1
|
||||||
#else
|
#else
|
||||||
#define FOR_WINDOWS 0
|
# define FOR_WINDOWS 0
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include <SDL2/SDL.h>
|
#include <SDL2/SDL.h>
|
||||||
|
|
||||||
#if FOR_WINDOWS || defined(OSX_BUILD)
|
#if FOR_WINDOWS || defined(OSX_BUILD)
|
||||||
#define GLEW_STATIC
|
# define GLEW_STATIC
|
||||||
#include <GL/glew.h>
|
# include <GL/glew.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#define GL_GLEXT_PROTOTYPES 1
|
#define GL_GLEXT_PROTOTYPES 1
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue