Fossil SCM
Change a #ifdef so that builds on MSVC will work on repos larger than 2GB.
Commit
6092935ff28e81c2fa3ddb3a6dd4f7da84baeab0
Parent
c0274f996266aef…
1 file changed
+1
-1
+1
-1
| --- src/file.c | ||
| +++ src/file.c | ||
| @@ -34,11 +34,11 @@ | ||
| 34 | 34 | ** The file status information from the most recent stat() call. |
| 35 | 35 | ** |
| 36 | 36 | ** Use _stati64 rather than stat on windows, in order to handle files |
| 37 | 37 | ** larger than 2GB. |
| 38 | 38 | */ |
| 39 | -#if defined(_WIN32) && defined(__MSVCRT__) | |
| 39 | +#if defined(_WIN32) && (defined(__MSVCRT__) || defined(_MSC_VER)) | |
| 40 | 40 | # define stat _stati64 |
| 41 | 41 | #endif |
| 42 | 42 | /* |
| 43 | 43 | ** On Windows S_ISLNK always returns FALSE. |
| 44 | 44 | */ |
| 45 | 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__) |
| 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 |