[PATCH] include: Add lldiv and lldiv_t
Alex Henrie
alexhenrie24 at gmail.com
Thu May 3 22:44:24 CDT 2018
Signed-off-by: Alex Henrie <alexhenrie24 at gmail.com>
---
For https://stackoverflow.com/questions/49397035/trying-to-use-winelib-with-standard-macos-build-tools-getting-strange-compiler
include/msvcrt/stdlib.h | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/include/msvcrt/stdlib.h b/include/msvcrt/stdlib.h
index 3c9c4a7fbc..2db48c592a 100644
--- a/include/msvcrt/stdlib.h
+++ b/include/msvcrt/stdlib.h
@@ -60,6 +60,11 @@ typedef struct _ldiv_t {
__msvcrt_long rem;
} ldiv_t;
+typedef struct _lldiv_t {
+ __int64 quot;
+ __int64 rem;
+} lldiv_t;
+
#define _countof(x) (sizeof(x)/sizeof((x)[0]))
@@ -194,6 +199,7 @@ void* __cdecl calloc(size_t,size_t);
div_t __cdecl div(int,int);
ldiv_t __cdecl ldiv(__msvcrt_long,__msvcrt_long);
#endif
+lldiv_t __cdecl lldiv(__int64,__int64);
void __cdecl exit(int);
void __cdecl free(void*);
char* __cdecl getenv(const char*);
--
2.17.0
More information about the wine-devel
mailing list