From 3afd6e9f516dd3b62e58893230d3d163bccb980f Mon Sep 17 00:00:00 2001 From: James Turner Date: Sun, 17 Jun 2012 21:12:47 +0100 Subject: [PATCH] Fix OS-X compilation. --- simgear/canvas/ShivaVG/src/shConfig.h | 3 +-- simgear/canvas/ShivaVG/src/shDefs.h | 6 ++++-- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/simgear/canvas/ShivaVG/src/shConfig.h b/simgear/canvas/ShivaVG/src/shConfig.h index 85fc809a..d701c279 100644 --- a/simgear/canvas/ShivaVG/src/shConfig.h +++ b/simgear/canvas/ShivaVG/src/shConfig.h @@ -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__) diff --git a/simgear/canvas/ShivaVG/src/shDefs.h b/simgear/canvas/ShivaVG/src/shDefs.h index e3c020e5..d6e57a78 100644 --- a/simgear/canvas/ShivaVG/src/shDefs.h +++ b/simgear/canvas/ShivaVG/src/shDefs.h @@ -156,10 +156,12 @@ SHfloat getMaxFloat(); /* OpenGL headers */ -#if defined(VG_API_LINUX) || defined (VG_API_MACOSX) +#if defined(VG_API_LINUX) #include #include - +#elif defined(VG_API_MACOSX) + #include + #include #elif defined(VG_API_WINDOWS) #include #include -- 2.39.5