]> git.mxchange.org Git - simgear.git/commitdiff
MacOS X fixes
authorehofman <ehofman>
Sun, 23 Nov 2003 10:04:45 +0000 (10:04 +0000)
committerehofman <ehofman>
Sun, 23 Nov 2003 10:04:45 +0000 (10:04 +0000)
simgear/metar/Local.h
simgear/scene/material/matlib.cxx

index 10f9081cfe2fa0331a55ef47429a59a51ddbde8b..b65ec718f97b48873365340202a6e9b86d1de88d 100644 (file)
@@ -1107,7 +1107,7 @@ char *rptstrip(char *);
 char *rptfmt(char *);
 char *rptfmti(char *, unsigned short int);
 
 char *rptfmt(char *);
 char *rptfmti(char *, unsigned short int);
 
-#ifndef __FreeBSD__  // strnstr is already defined on FreeBSD
+#if !defined(__FreeBSD__) && !defined(__APPLE__)  // strnstr is already defined on FreeBSD / Darwin
 char *strnstr(char *, char *, size_t);
 #endif
  
 char *strnstr(char *, char *, size_t);
 #endif
  
index 9d0ee86dbf8ababe49f0683a32ee9cd4c46047b3..79404622273603993f4521103aa1d2c33c274597 100644 (file)
@@ -178,7 +178,8 @@ static int gen_taxiway_dir_light_map( int r, int g, int b, int alpha ) {
 static int gen_vasi_light_map() {
     const int env_tex_res = 256;
     int half_res = env_tex_res / 2;
 static int gen_vasi_light_map() {
     const int env_tex_res = 256;
     int half_res = env_tex_res / 2;
-    unsigned char env_map[env_tex_res][env_tex_res][4];
+
+    static unsigned char env_map[env_tex_res][env_tex_res][4];
     GLuint tex_name;
 
     for ( int i = 0; i < env_tex_res; ++i ) {
     GLuint tex_name;
 
     for ( int i = 0; i < env_tex_res; ++i ) {