]> git.mxchange.org Git - simgear.git/blobdiff - simgear/timing/lowleveltime.cxx
Fix a problem for systems with older headers
[simgear.git] / simgear / timing / lowleveltime.cxx
index 4c3d24f27480c6c63307cc58f65f0029faa8244c..84e72c834c10ece73696bfbfea07d7987fbde322 100644 (file)
@@ -304,7 +304,7 @@ static void fgtzset_internal (int always, const char *tz)
     /* User specified the empty string; use UTC explicitly.  */
     tz = "Universal";
 
-#ifdef MACOS
+#ifdef macintosh
   /* as you well know, mac paths contain leading colon, this code
      messes things up.... */
 #else
@@ -862,8 +862,12 @@ void fgtzfile_read (const char *file)
 //     }
 
   f = fopen (file, "rb");
-  if (f == NULL)
-    return;
+
+  if (f == NULL) {
+      perror( "fgtzfile_read(): " );
+      errno = 0;
+      return;
+  }
 
   if (fread ((void *) &tzhead, sizeof (tzhead), 1, f) != 1)
     goto lose;