File: wxMSW-2.8.11-filefn.patch

package info (click to toggle)
libalien-wxwidgets-perl 0.69%2Bdfsg-3
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 1,220 kB
  • sloc: perl: 5,365; makefile: 19
file content (31 lines) | stat: -rw-r--r-- 1,300 bytes parent folder | download | duplicates (7)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
--- include/wx/filefn.h	2010-04-15 10:02:45.000000000 +0100
+++ include/wx/filefn.h	2010-04-24 06:33:37.318000000 +0100
@@ -180,10 +180,19 @@
     #endif
 
     // detect compilers which have support for huge stdio files
+
     #if defined __VISUALC__ && __VISUALC__ >= 1400
+      #if defined __WIN64__
+        #if __VISUALC__ >= 1500
         #define wxHAS_HUGE_STDIO_FILES
         #define wxFseek _fseeki64
         #define wxFtell _ftelli64
+        #endif
+      #else
+        #define wxHAS_HUGE_STDIO_FILES
+        #define wxFseek _fseeki64
+        #define wxFtell _ftelli64
+      #endif
     #elif wxCHECK_MINGW32_VERSION(3, 5) // mingw-runtime version (not gcc)
         #define wxHAS_HUGE_STDIO_FILES
         #define wxFseek fseeko64
@@ -210,7 +219,7 @@
     // to avoid using them as they're not present in earlier versions and
     // always using the native functions spelling is easier than testing for
     // the versions
-    #if defined(__BORLANDC__) || defined(__DMC__) || defined(__WATCOMC__) || defined(__MINGW64__)
+    #if defined(__BORLANDC__) || defined(__DMC__) || defined(__WATCOMC__)
         #define wxPOSIX_IDENT(func)    ::func
     #else // by default assume MSVC-compatible names
         #define wxPOSIX_IDENT(func)    _ ## func