[PATCH] include: Use long type for __msvcrt_long when possible.

Jacek Caban jacek at codeweavers.com
Wed Apr 22 19:32:09 CDT 2020


Based on patch by Chip Davis.

Signed-off-by: Jacek Caban <jacek at codeweavers.com>
---

With PE builds by default and GCC using -mabi and native clang not 
really working, platforms where we can't use long are mostly 
theoretical. On the other hand, on cross compilers, using ints where 
long is expected causes troubles for things like builtin functions. This 
was already addressed for clang in mingw mode in ee9beb58639, but 
incompatible long is an error in msvc mode.

  dlls/msvcirt/tests/msvcirt.c |  8 ++++----
  dlls/msvcrt/tests/file.c     | 12 ++++++------
  dlls/msvcrt/tests/misc.c     |  8 ++++----
  dlls/msvcrt/tests/time.c     | 10 +++++-----
  include/msvcrt/corecrt.h     |  5 +++++
  5 files changed, 24 insertions(+), 19 deletions(-)


-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-include-Use-long-type-for-__msvcrt_long-when-possible.txt
Type: text/x-patch
Size: 9025 bytes
Desc: not available
URL: <http://www.winehq.org/pipermail/wine-devel/attachments/20200423/ae48eb43/attachment-0001.bin>


More information about the wine-devel mailing list