Browse Source

DefaultIOStream: add missing detection for apple-based OS.

Kim Kulling 9 years ago
parent
commit
83b02ff41f
1 changed files with 1 additions and 1 deletions
  1. 1 1
      code/DefaultIOStream.cpp

+ 1 - 1
code/DefaultIOStream.cpp

@@ -126,7 +126,7 @@ size_t DefaultIOStream::FileSize() const
         if (0 != err)
         if (0 != err)
             return 0;
             return 0;
         cachedSize = (size_t) (fileStat.st_size);
         cachedSize = (size_t) (fileStat.st_size);
-#elif defined __gnu_linux__
+#elif defined __gnu_linux__ || defined __APPLE__ || defined __MACH__
         struct stat fileStat;
         struct stat fileStat;
         int err = stat(mFilename.c_str(), &fileStat );
         int err = stat(mFilename.c_str(), &fileStat );
         if (0 != err)
         if (0 != err)