1
0
Fork 0

Fix OS-X compilation.

This commit is contained in:
James Turner 2012-06-17 21:12:47 +01:00
parent 569042acbd
commit a8fbfb17b4
2 changed files with 5 additions and 4 deletions

View file

@ -2,7 +2,6 @@
#ifndef __SHCONFIG_H
#define __SHCONFIG_H
////////////////////////////////////////////////////////////
// Identify the operating system
////////////////////////////////////////////////////////////
@ -25,7 +24,7 @@
#elif defined(__APPLE__) || defined(MACOSX) || defined(macintosh) || defined(Macintosh)
// MacOS
#define VG_API_MACOS
#define VG_API_MACOSX
#elif defined(__FreeBSD__) || defined(__FreeBSD_kernel__)

View file

@ -156,10 +156,12 @@ SHfloat getMaxFloat();
/* OpenGL headers */
#if defined(VG_API_LINUX) || defined (VG_API_MACOSX)
#if defined(VG_API_LINUX)
#include <GL/gl.h>
#include <GL/glu.h>
#elif defined(VG_API_MACOSX)
#include <OpenGL/gl.h>
#include <OpenGL/glu.h>
#elif defined(VG_API_WINDOWS)
#include <GL/gl.h>
#include <GL/glu.h>