summaryrefslogtreecommitdiff
path: root/mkspecs/win32-borland/qplatformdefs.h
Side-by-side diff
Diffstat (limited to 'mkspecs/win32-borland/qplatformdefs.h') (more/less context) (show whitespace changes)
-rw-r--r--mkspecs/win32-borland/qplatformdefs.h54
1 files changed, 34 insertions, 20 deletions
diff --git a/mkspecs/win32-borland/qplatformdefs.h b/mkspecs/win32-borland/qplatformdefs.h
index 5babada..121f863 100644
--- a/mkspecs/win32-borland/qplatformdefs.h
+++ b/mkspecs/win32-borland/qplatformdefs.h
@@ -30,7 +30,11 @@
#if __BORLANDC__ >= 0x550
-#ifdef QT_LARGE_FILE_SUPPORT
+// Borland Builder 6
+
+#ifdef QT_LARGEFILE_SUPPORT
#define QT_STATBUF struct stati64 // non-ANSI defs
-#define QT_STATBUF4TSTAT struct _stati64 // non-ANSI defs
-#define QT_STAT ::stati64
+# define QT_STATBUF4TSTAT struct stati64 // non-ANSI defs
+# define QT_STAT ::_stati64
#define QT_FSTAT ::fstati64
+# define QT_LSEEK ::_lseeki64
+# define QT_TSTAT ::_tstati64
#else
@@ -40,3 +44,6 @@
#define QT_FSTAT ::fstat
+# define QT_LSEEK ::_lseek
+# define QT_TSTAT ::_tstat
#endif
+
# define QT_STAT_REG _S_IFREG
@@ -44,2 +51,3 @@
# define QT_STAT_MASK _S_IFMT
+
# if defined(_S_IFLNK)
@@ -47,2 +55,3 @@
# endif
+
# define QT_FILENO _fileno
@@ -50,9 +59,3 @@
# define QT_CLOSE ::_close
-#ifdef QT_LARGE_FILE_SUPPORT
-#define QT_LSEEK ::_lseeki64
-#define QT_TSTAT ::_tstati64
-#else
-#define QT_LSEEK ::_lseek
-#define QT_TSTAT ::_tstat
-#endif
+
# define QT_READ ::_read
@@ -70,2 +73,3 @@
# define QT_OPEN_APPEND _O_APPEND
+
# if defined(O_TEXT)
@@ -74,4 +78,7 @@
# endif
-#else // all other systems
-#ifdef QT_LARGE_FILE_SUPPORT
+
+#else
+// Borland Builder 5
+
+#ifdef QT_LARGEFILE_SUPPORT
#define QT_STATBUF struct stati64 // non-ANSI defs
@@ -80,2 +87,4 @@
#define QT_FSTAT ::fstati64
+# define QT_LSEEK ::lseeki64
+# define QT_TSTAT ::tstati64
#else
@@ -85,3 +94,6 @@
#define QT_FSTAT ::fstat
+# define QT_LSEEK ::lseek
+# define QT_TSTAT ::tstat
#endif
+
# define QT_STAT_REG S_IFREG
@@ -89,2 +101,3 @@
# define QT_STAT_MASK S_IFMT
+
# if defined(S_IFLNK)
@@ -92,2 +105,3 @@
# endif
+
# define QT_FILENO fileno
@@ -95,9 +109,3 @@
# define QT_CLOSE ::close
-#ifdef QT_LARGE_FILE_SUPPORT
-#define QT_LSEEK ::lseeki64
-#define QT_TSTAT ::tstati64
-#else
-#define QT_LSEEK ::lseek
-#define QT_TSTAT ::tstat
-#endif
+
# define QT_READ ::read
@@ -105,2 +113,3 @@
# define QT_ACCESS ::access
+
# if defined(Q_OS_OS2EMX)
@@ -114,2 +123,3 @@
# endif
+
# define QT_MKDIR ::mkdir
@@ -122,2 +132,3 @@
# define QT_OPEN_APPEND O_APPEND
+
# if defined(O_TEXT)
@@ -126,3 +137,6 @@
# endif
-#endif
+
+#endif // __BORLANDC__ >= 0x550
+
+// Borland Builder 5 and 6