DefaultIOStream: add missing detection for apple-based OS.
authorKim Kulling <kim.kulling@googlemail.com>
Fri, 12 Aug 2016 16:14:26 +0000 (18:14 +0200)
committerKim Kulling <kim.kulling@googlemail.com>
Fri, 12 Aug 2016 16:14:26 +0000 (18:14 +0200)
code/DefaultIOStream.cpp

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