Fossil SCM

Change a #ifdef so that builds on MSVC will work on repos larger than 2GB.

drh 2011-10-05 02:03 UTC trunk
Commit 6092935ff28e81c2fa3ddb3a6dd4f7da84baeab0
1 file changed +1 -1
+1 -1
--- src/file.c
+++ src/file.c
@@ -34,11 +34,11 @@
3434
** The file status information from the most recent stat() call.
3535
**
3636
** Use _stati64 rather than stat on windows, in order to handle files
3737
** larger than 2GB.
3838
*/
39
-#if defined(_WIN32) && defined(__MSVCRT__)
39
+#if defined(_WIN32) && (defined(__MSVCRT__) || defined(_MSC_VER))
4040
# define stat _stati64
4141
#endif
4242
/*
4343
** On Windows S_ISLNK always returns FALSE.
4444
*/
4545
--- src/file.c
+++ src/file.c
@@ -34,11 +34,11 @@
34 ** The file status information from the most recent stat() call.
35 **
36 ** Use _stati64 rather than stat on windows, in order to handle files
37 ** larger than 2GB.
38 */
39 #if defined(_WIN32) && defined(__MSVCRT__)
40 # define stat _stati64
41 #endif
42 /*
43 ** On Windows S_ISLNK always returns FALSE.
44 */
45
--- src/file.c
+++ src/file.c
@@ -34,11 +34,11 @@
34 ** The file status information from the most recent stat() call.
35 **
36 ** Use _stati64 rather than stat on windows, in order to handle files
37 ** larger than 2GB.
38 */
39 #if defined(_WIN32) && (defined(__MSVCRT__) || defined(_MSC_VER))
40 # define stat _stati64
41 #endif
42 /*
43 ** On Windows S_ISLNK always returns FALSE.
44 */
45

Keyboard Shortcuts

Open search /
Next entry (timeline) j
Previous entry (timeline) k
Open focused entry Enter
Show this help ?
Toggle theme Top nav button