Jacek Caban
de9982f069
include: Use __builtin_offsetof on Clang.
...
Fixes a number of warning on MSVC target.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-10-07 18:03:11 +02:00
Daniel Lehman
c518a5362b
include: Add _tcsxfrm_l declaration.
...
Signed-off-by: Daniel Lehman <dlehman@esri.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-07-22 21:14:56 +02:00
Biswapriyo Nath
d60c450c7b
winecrt0: Add missing members in _JUMP_BUFFER for SJLJ.
...
Signed-off-by: Biswapriyo Nath <nathbappai@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-07-19 20:09:58 +02:00
Piotr Caban
fd22e3b61b
msvcrt: Import remainder implementation from musl.
...
Signed-off-by: Piotr Caban <piotr@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-05-19 16:56:50 +02:00
Piotr Caban
9cd51b02ee
ucrtbase: Copy fenv tests from msvcr120.
...
Signed-off-by: Piotr Caban <piotr@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-05-19 10:32:13 +02:00
Piotr Caban
522e13e682
include: Fix denormals handling in _fpclassf inline implementation.
...
Signed-off-by: Piotr Caban <piotr@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-05-14 20:57:30 +02:00
Rémi Bernon
b18a48eb70
include: Include x86intrin.h in msvcrt/intrin.h.
...
Signed-off-by: Rémi Bernon <rbernon@codeweavers.com>
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-03-16 20:36:43 +01:00
Daniel Lehman
9fa81aab5f
msvcr120: Add fegetexceptflag.
...
Signed-off-by: Daniel Lehman <dlehman25@gmail.com>
Signed-off-by: Piotr Caban <piotr@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-03-12 17:22:32 +01:00
Daniel Lehman
fd0c03c644
msvcr120: Add feclearexcept.
...
Signed-off-by: Daniel Lehman <dlehman25@gmail.com>
Signed-off-by: Piotr Caban <piotr@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-03-12 17:22:26 +01:00
Daniel Lehman
5fd512504c
msvcr120: Add fesetexceptflag.
...
Signed-off-by: Daniel Lehman <dlehman25@gmail.com>
Signed-off-by: Piotr Caban <piotr@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-03-12 17:22:20 +01:00
Daniel Lehman
7981ab4fd0
msvcr120: Add fetestexcept.
...
Signed-off-by: Daniel Lehman <dlehman25@gmail.com>
Signed-off-by: Piotr Caban <piotr@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-03-12 17:22:12 +01:00
Jacek Caban
e3708c2c79
include: Fix __dmb declaration.
...
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-02-26 16:28:20 +01:00
Jacek Caban
22a1485c08
oleaut32: Use C locale in VARIANT_BstrFromReal.
...
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=50672
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-02-16 23:01:38 +01:00
Daniel Lehman
3746381e7e
include: Fix [v]sprintf_s declarations.
...
Signed-off-by: Daniel Lehman <dlehman@esri.com>
Signed-off-by: Piotr Caban <piotr@codeweavers.com>
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-02-05 15:38:19 +01:00
Alexandre Julliard
5131905771
msvcrt: Don't export fabsf on x86_64.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-01-15 17:03:10 +01:00
Martin Storsjo
52398912f9
include: Don't use __attribute__((pcs("aapcs-vfp"))) when building in PE mode.
...
Clang doesn't support this attribute for windows targets right now;
the attribute is only needed for selecting a potentially non-default
calling convention on e.g. linux.
Signed-off-by: Martin Storsjo <martin@martin.st>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-01-15 16:20:06 +01:00
Martin Storsjo
dac1e16dd4
include: Check whether the ms_abi attribute is supported on aarch64.
...
While wine's configure checks and requires that the ms_abi attribute
is supported on aarch64 (without it, variadic functions don't have the
correct ABI), these headers are also included when building widl as a
generic cross compilation tool as part of mingw-w64-tools. In the case
of widl, the functions that use these attributes (and in particular,
their ABI) doesn't matter as they aren't used/called, they're just
included as a side effect of including the headers that widl actually
needs.
This fixes building the widl tool for aarch64 linux with GCC, even if
wine itself can't be built in that configuration.
Only windef.h is used/needed by widl, but update msvcrt/corecrt.h as
well to keep these definitions in sync.
Signed-off-by: Martin Storsjo <martin@martin.st>
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-12-21 16:55:53 +01:00
Jacek Caban
d91ad4ca24
setjmp.h: Use GCC-style setjmp on Clang in MSVC mode.
...
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-12-11 21:47:15 +01:00
Piotr Caban
a7b9948f39
msvcrt: Use _configthreadlocale arguments definition from public header.
...
Signed-off-by: Piotr Caban <piotr@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-12-04 16:41:16 +01:00
Piotr Caban
79e950bb79
msvcrt: Remove non-needed function declarations from msvcrt.h.
...
Signed-off-by: Piotr Caban <piotr@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-12-04 16:41:16 +01:00
Piotr Caban
713364f35c
include: Add corecrt_io.h header.
...
Signed-off-by: Piotr Caban <piotr@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-12-04 16:41:16 +01:00
Piotr Caban
494a789407
msvcrt: Use _Dcomplex definition from public header.
...
Signed-off-by: Piotr Caban <piotr@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-12-04 16:37:39 +01:00
Piotr Caban
200fe8ac42
msvcrt: Use _purecall_handler from public header.
...
Signed-off-by: Piotr Caban <piotr@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-12-04 16:36:54 +01:00
Piotr Caban
1913affb7b
msvcrt: Remove MSVCRT_ prefix from file.c functions.
...
Signed-off-by: Piotr Caban <piotr@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-12-03 21:00:22 +01:00
Piotr Caban
4f2f3545e5
msvcrt: Remove MSVCRT_ prefix from math.c functions.
...
Signed-off-by: Piotr Caban <piotr@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-12-03 21:00:22 +01:00
Piotr Caban
6ad42ee7f4
msvcrt: Remove MSVCRT_ prefix from wcs.c functions.
...
Signed-off-by: Piotr Caban <piotr@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-12-03 21:00:22 +01:00
Piotr Caban
1514c54ce5
msvcrt: Remove MSVCRT_ prefix from string.c functions.
...
Signed-off-by: Piotr Caban <piotr@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-12-02 15:38:24 +01:00
Piotr Caban
a1662e3f7d
msvcrt: Remove MSVCRT_ prefix from scanf.c functions.
...
Signed-off-by: Piotr Caban <piotr@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-12-02 15:37:21 +01:00
Piotr Caban
0364b7681f
msvcrt: Remove MSVCRT_ prefix from misc.c functions.
...
Signed-off-by: Piotr Caban <piotr@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-12-02 15:37:20 +01:00
Piotr Caban
065cf4e714
msvcrt: Remove MSVCRT_ prefix from mbcs.c functions.
...
Signed-off-by: Piotr Caban <piotr@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-12-02 15:37:20 +01:00
Piotr Caban
0d479b9d8c
msvcrt: Use stdio.h definitions.
...
Signed-off-by: Piotr Caban <piotr@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-12-02 11:57:48 +01:00
Piotr Caban
495f24ebb8
msvcrt: Remove MSVCRT_ prefix from data.c functions.
...
Signed-off-by: Piotr Caban <piotr@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-12-01 14:03:07 +01:00
Piotr Caban
176aebb0c5
msvcrt: Remove MSVCRT_ prefix from ctype.c functions.
...
Signed-off-by: Piotr Caban <piotr@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-12-01 14:02:58 +01:00
Piotr Caban
758460faf7
msvcrt: Use type ranges definition from public header.
...
Signed-off-by: Piotr Caban <piotr@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-11-27 21:59:39 +01:00
Piotr Caban
d5c0458bd1
msvcrt: Remove MSVCRT_pthreadlocinfo type.
...
Signed-off-by: Piotr Caban <piotr@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-11-26 23:25:38 +01:00
Piotr Caban
70c06601e6
msvcrt: Remove MSVCRT_lconv type.
...
Signed-off-by: Piotr Caban <piotr@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-11-26 23:25:38 +01:00
Alexandre Julliard
5a0c9270b1
include: Force aligning stack pointer also for Mingw builds.
...
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=50189
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-11-26 21:31:53 +01:00
Alexandre Julliard
579fc688af
include: Use proper dllimports for msvcrt functions.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-11-24 18:50:06 +01:00
Alexandre Julliard
0edef50dfa
msvcrt: Use the public standard type definitions where possible in msvcrt.h.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-11-20 19:01:04 +01:00
Alexandre Julliard
34422eb56c
msvcrt: Move the fenv_t definition to the public header.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-11-20 19:01:01 +01:00
Alexandre Julliard
86b0a633c6
msvcrt/tests: Remove the headers test.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-11-20 12:36:16 +01:00
Alexandre Julliard
32eae49275
include: Use gcc builtin for HUGE_VAL.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-11-19 21:23:21 +01:00
Alexandre Julliard
b9002cc8c7
msvcrt: Add floating point classification macros.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-11-17 13:46:26 +01:00
Alexandre Julliard
3d72d2600f
include: Fix setjmp() support with 32-bit ucrtbase.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-11-06 17:34:27 +01:00
Brendan Shanks
91741446c7
include: Force stack alignment on x86_64 with Clang.
...
Signed-off-by: Brendan Shanks <bshanks@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-11-05 09:58:48 +01:00
Paul Gofman
ebe3fe536c
msvcrt: Implement _mbbtype_l().
...
Fixes Midnight Castle Succubus.
Signed-off-by: Paul Gofman <pgofman@codeweavers.com>
Signed-off-by: Piotr Caban <piotr@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-09-24 17:44:51 +02:00
Paul Gofman
12106c214b
msvcrt: Implement _mbscmp_l().
...
Signed-off-by: Paul Gofman <pgofman@codeweavers.com>
Signed-off-by: Piotr Caban <piotr@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-09-24 17:44:47 +02:00
Paul Gofman
082de781f0
msvcrt: Implement _mbsnextc_l().
...
Signed-off-by: Paul Gofman <pgofman@codeweavers.com>
Signed-off-by: Piotr Caban <piotr@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-09-24 17:44:44 +02:00
Gijs Vermeulen
db1403c5de
msvcr120: Add [_]strtoimax[_l] and [_]strtoumax[_l].
...
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=49738
Signed-off-by: Gijs Vermeulen <gijsvrm@gmail.com>
Signed-off-by: Piotr Caban <piotr@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-09-14 19:42:40 +02:00
Paul Gofman
0e544824f5
include: Implement __cpuidex() function.
...
Signed-off-by: Paul Gofman <pgofman@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-08-20 18:49:48 +02:00