summaryrefslogtreecommitdiffstats
path: root/source/core/stream.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'source/core/stream.cpp')
-rw-r--r--source/core/stream.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/source/core/stream.cpp b/source/core/stream.cpp
index f78e5af83..b705b13a1 100644
--- a/source/core/stream.cpp
+++ b/source/core/stream.cpp
@@ -134,6 +134,8 @@ namespace Slang
fpos_t pos;
fgetpos(handle, &pos);
return pos;
+#elif defined(__APPLE__)
+ return ftell(handle);
#else
fpos64_t pos;
fgetpos64(handle, &pos);