소스 검색

Fix Win64 compilation

rdb 10 년 전
부모
커밋
a902f1628b
1개의 변경된 파일5개의 추가작업 그리고 7개의 파일을 삭제
  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;