Browse Source

Fix Win64 compilation

rdb 10 years ago
parent
commit
a902f1628b
1 changed files with 5 additions and 7 deletions
  1. 5 7
      dtool/src/parser-inc/iostream

+ 5 - 7
dtool/src/parser-inc/iostream

@@ -47,15 +47,13 @@ __published:
 class ios : public ios_base {
 __published:
   typedef long fmtflags;
-#ifdef _WIN64
-  typedef unsigned __int64 streampos;
-  typedef __int64 streamoff;
-#elif defined(_WIN32)
-  typedef unsigned long streampos;
-  typedef long streamoff;
-#else
+#if defined(_WIN64) || !defined(_WIN32)
   typedef unsigned long long streampos;
   typedef long long streamoff;
+#else
+  // 32-bit Windows uses 32-bit stream offsets.
+  typedef unsigned long streampos;
+  typedef long streamoff;
 #endif
 
   bool good() const;