summaryrefslogtreecommitdiffstats
path: root/mkspecs/win32-msvc.net/qplatformdefs.h
diff options
context:
space:
mode:
Diffstat (limited to 'mkspecs/win32-msvc.net/qplatformdefs.h')
-rw-r--r--mkspecs/win32-msvc.net/qplatformdefs.h17
1 files changed, 5 insertions, 12 deletions
diff --git a/mkspecs/win32-msvc.net/qplatformdefs.h b/mkspecs/win32-msvc.net/qplatformdefs.h
index dcfaec5..05584c9 100644
--- a/mkspecs/win32-msvc.net/qplatformdefs.h
+++ b/mkspecs/win32-msvc.net/qplatformdefs.h
@@ -113,23 +113,16 @@
# define QT_OPEN_BINARY _O_BINARY
#endif
-#define QT_FOPEN ::fopen
+#include "../common/c89/qplatformdefs.h"
+
#ifdef QT_LARGEFILE_SUPPORT
+#undef QT_FTELL
+#undef QT_OFF_T
+
// 64-bit versions of fseek/ftell not always available. E.g., when linking
// dynamically to CRT (/MT)
-#define QT_FSEEK ::fseek
#define QT_FTELL (QT_OFF_T)::ftell
-#else
-#define QT_FSEEK ::fseek
-#define QT_FTELL ::ftell
-#endif
-#define QT_FGETPOS ::fgetpos
-#define QT_FSETPOS ::fsetpos
-#define QT_FPOS_T fpos_t
-#ifdef QT_LARGEFILE_SUPPORT
#define QT_OFF_T __int64
-#else
-#define QT_OFF_T long
#endif
#define QT_SIGNAL_ARGS int