From 83b02ff41f07a656a526063d1caebc2eee913f5d Mon Sep 17 00:00:00 2001 From: Kim Kulling Date: Fri, 12 Aug 2016 18:14:26 +0200 Subject: [PATCH] DefaultIOStream: add missing detection for apple-based OS. --- code/DefaultIOStream.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/DefaultIOStream.cpp b/code/DefaultIOStream.cpp index 73bfb35c4..d10c303d8 100644 --- a/code/DefaultIOStream.cpp +++ b/code/DefaultIOStream.cpp @@ -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)