-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
advancecomp: Build on UCRT64 and CLANG64
- Loading branch information
1 parent
d04de0a
commit 7c2d7ea
Showing
2 changed files
with
30 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
--- a/portable.h | ||
+++ b/portable.h | ||
@@ -146,7 +146,7 @@ | ||
#endif | ||
|
||
/* 64 bit IO */ | ||
-#ifdef __WIN32__ | ||
+#if defined(__WIN32__) && !defined(_UCRT) | ||
#define off_t off64_t /* This must be after including stdio.h */ | ||
off64_t rpl_ftello(FILE* f); | ||
int rpl_fseeko(FILE* f, off64_t offset, int origin); | ||
--- a/portable.c | ||
+++ b/portable.c | ||
@@ -30,7 +30,7 @@ | ||
|
||
#include "portable.h" | ||
|
||
-#ifdef __WIN32__ | ||
+#if defined(__WIN32__) && !defined(_UCRT) | ||
off64_t rpl_ftello(FILE* f) | ||
{ | ||
fpos_t fpos; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters