Martin Garton
0dda5753c5
msvcrt: Fix typo in #define.
2023-04-18 10:23:52 +02:00
Alexandre Julliard
438553e923
libs: Import the math library from upstream musl 1.2.3.
2023-04-04 09:43:51 +02:00
Zebediah Figura
cf4b4ff642
include: Include corecrt.h in vadefs.h.
...
For the __has_attribute() fallback.
Fixes: f4c3801495
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=54666
2023-03-31 11:10:43 +02:00
Alexandre Julliard
f4c3801495
include: Move __builtin_ms_va_list definitions to vadefs.h.
2023-02-20 08:41:45 +01:00
Jinoh Kang
b6a26817bc
include/msvcrt: Add noreturn attribute to _assert.
...
This informs the compiler that no code following an assertion failure
will execute (unless NDEBUG is defined), which increases the accuracy of
compiler warnings and static analyses.
For assert.h, put DECLSPEC_NORETURN before the return type in the
function declaration to remain consistent with other MSVCRT function
declarations.
2023-01-30 18:55:57 +01:00
Alexandre Julliard
42b13eff24
include: Add some C99 floating point comparison macros.
2023-01-30 16:49:55 +01:00
Brendan Shanks
21c4260792
include/msvcrt: Add __WINE_(ALLOC_SIZE|DEALLOC) attributes to _recalloc.
2023-01-26 22:05:13 +01:00
Brendan Shanks
d36cbc4a57
include/msvcrt: Add __WINE_(ALLOC_SIZE|DEALLOC|MALLOC) attributes to _aligned_malloc functions.
2023-01-26 22:05:13 +01:00
Brendan Shanks
3a688e81a6
include/msvcrt: Add __WINE_(DEALLOC|MALLOC) attributes to _strdup and _wcsdup.
2023-01-26 22:05:13 +01:00
Alex Henrie
88d6f8ac6c
include: Add localtime_s.
...
Needed to compile Tera Term.
2023-01-25 13:10:05 +01:00
Alex Henrie
9844a69411
include: Add ctime_s.
...
Needed to compile Tera Term.
2023-01-25 13:10:03 +01:00
Jacek Caban
4d8091cccc
include: Add stdarg.h header.
...
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=54263
2023-01-10 09:20:54 +01:00
Jacek Caban
4c7e7ccac9
include: Add vadefs.h header.
...
Based on mingw-w64.
2023-01-10 09:20:51 +01:00
Alex Henrie
3ffc420440
include: Add _recalloc.
2022-12-13 12:08:29 +01:00
Alex Henrie
926433faa3
include: Add corecrt_malloc.h.
2022-12-08 18:12:51 +01:00
Alex Henrie
ce7375725a
include: Define __stat64.
...
Needed to compile Tera Term.
2022-12-01 20:36:04 +01:00
Alex Henrie
7c2af26a62
include: Include limits.h in stdlib.h.
...
Needed to compile Tera Term.
2022-11-14 13:17:31 +01:00
Alex Henrie
5f46d556fe
include: Add wcsncat_s.
...
Needed to compile Tera Term.
2022-11-03 18:33:09 +01:00
Alex Henrie
d24cbd1165
include: Add freopen_s.
...
Needed to compile Tera Term.
2022-11-03 18:33:09 +01:00
Alex Henrie
01777127cf
include: Add _splitpath_s.
...
Needed to compile Tera Term.
2022-11-03 18:33:09 +01:00
Bartosz Kosiorek
7984319248
msvcrt: Add _mbcjmstojis_l implementation.
2022-10-31 20:41:45 +01:00
Alex Henrie
7d85693750
include: Add _putenv_s.
...
Needed to compile Tera Term.
2022-10-20 18:30:14 +02:00
Alex Henrie
5235526b16
include: Move strto[iu]max(_l) from stdlib.h to inttypes.h.
...
Needed to compile PuTTY.
2022-10-19 18:48:54 +02:00
Daniel Lehman
c695ec59b1
include: Add _tcsto[u]ll declarations.
...
Signed-off-by: Daniel Lehman <dlehman25@gmail.com>
2022-06-20 10:37:56 +02:00
Eric Pouech
69ab9568b2
include/msvcrt: Redefine towlower* & towupper* with wint_t types.
...
It conflicts in C++ compilation with MINGW builtin definitions.
Signed-off-by: Eric Pouech <eric.pouech@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-05-03 18:58:28 +02:00
Martin Storsjö
8f8b802e12
include: Add declarations of _alloca and alloca for MSVC mode.
...
This fixes builds with recent Clang 15 (which still is in development),
which errors out on implicit declarations.
Signed-off-by: Martin Storsjö <martin@martin.st>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-04-25 11:37:59 +02:00
Daniel Lehman
47ce525c2b
include: Add some math declarations.
...
Signed-off-by: Daniel Lehman <dlehman25@gmail.com>
Signed-off-by: Piotr Caban <piotr@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-04-13 16:31:23 +02:00
Daniel Lehman
3237e4025a
include: Add _sscanf_l.
...
Signed-off-by: Daniel Lehman <dlehman@esri.com>
Signed-off-by: Piotr Caban <piotr@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-02-04 22:44:49 +01:00
Eric Pouech
bb1fc33570
include/msvcrt: Add attribute((format)) to printf and scanf -like APIs.
...
Fix a bunch of warnings generated by this patch and the migration of
GUID.Data1 to long in ae2693e2c4
Signed-off-by: Eric Pouech <eric.pouech@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-01-31 18:38:55 +01:00
Zebediah Figura
d0acbcb0d7
include: Add _fpreset().
...
Signed-off-by: Zebediah Figura <zfigura@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-11-30 22:07:21 +01:00
Francois Gouget
91851e3e45
ctype.h: Add _isctype_l() declaration.
...
Signed-off-by: Francois Gouget <fgouget@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-10-18 18:34:56 +02:00
Alexandre Julliard
2a92c58e11
include: Use the standard va_list instead of __ms_va_list when building with msvcrt.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-10-15 18:28:01 +02:00
Alexandre Julliard
2971716835
include: Define fpclassify().
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-10-15 18:28:00 +02:00
Alexandre Julliard
9ae627316d
include: Define all the __int* types also for msvcrt.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-10-14 15:28:56 +02:00
Alexandre Julliard
f7e1b0f9b7
configure: Always define _WIN32 for msvcrt builds.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-10-14 15:28:52 +02:00
Alexandre Julliard
339950a781
configure: Don't define _WIN32 for Cygwin builds.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-10-14 11:07:56 +02:00
Alexandre Julliard
84bfdccf6d
include: Add prototypes for the byteswap functions.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-10-13 18:41:02 +02:00
Alexandre Julliard
d4259ac8e9
include: Import specstrings.h and related headers from Mingw.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-10-13 13:39:20 +02:00
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