summaryrefslogtreecommitdiffstats
path: root/mkspecs/win32-msvc2005
diff options
context:
space:
mode:
authorJoão Abecasis <joao@trolltech.com>2010-01-15 12:26:17 +0100
committerJoão Abecasis <joao@trolltech.com>2010-01-22 17:50:19 +0100
commit784946b8ea8b932924a831504387661d66170ca0 (patch)
tree4e369a848b163d6f28e23f4ff065cc0999a1d60a /mkspecs/win32-msvc2005
parent44232675a87c766b48d8f3d70d04dee6538a6caf (diff)
Refactor common C89 support out of individual qplatformdefs.h
Reviewed-by: Thiago Macieira
Diffstat (limited to 'mkspecs/win32-msvc2005')
-rw-r--r--mkspecs/win32-msvc2005/qplatformdefs.h17
1 files changed, 6 insertions, 11 deletions
diff --git a/mkspecs/win32-msvc2005/qplatformdefs.h b/mkspecs/win32-msvc2005/qplatformdefs.h
index b87ea48fa2..33360b7680 100644
--- a/mkspecs/win32-msvc2005/qplatformdefs.h
+++ b/mkspecs/win32-msvc2005/qplatformdefs.h
@@ -113,21 +113,16 @@
# define QT_OPEN_BINARY _O_BINARY
#endif
-#define QT_FOPEN ::fopen
+#include "../common/c89/qplatformdefs.h"
+
#ifdef QT_LARGEFILE_SUPPORT
+#undef QT_FSEEK
+#undef QT_FTELL
+#undef QT_OFF_T
+
#define QT_FSEEK ::_fseeki64
#define QT_FTELL ::_ftelli64
-#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