aboutsummaryrefslogtreecommitdiff
path: root/lib/libc/mingw
AgeCommit message (Collapse)Author
2025-08-28libc: delete superfluous c and assembly trunc implementationsDavid Senoner
2025-08-28libc: delete superfluous c and assembly ceil implementationDavid Senoner
2025-08-27libc: use zig isnan and derivates for mingwDavid Senoner
2025-07-04delete superfluous assembly libc floor implementationsDavid Senoner
2025-06-11mingw: Update MinGW-w64 sources to 38c8142f660b6ba11e7c408f2de1e9f8bfaf839e.Alex Rønne Petersen
2025-06-11mingw: Update MinGW-w64 definitions to 38c8142f660b6ba11e7c408f2de1e9f8bfaf839e.Alex Rønne Petersen
2025-06-02Added zig patch comments to annotate the deletion of the sincos symbolSuper User
2025-06-01libc: replace MinGW's trigonometric functions with compiler_rt'sKoki Ueha
- sinf - cosf - sincos - sincosf - tanf
2025-05-30mingw: Remove libscrnsav(e,w) support.Alex Rønne Petersen
This defines a WinMain() function that can be potentially problematic when it isn't wanted. If we add back support for this library in the future, it should be built separately from mingw32.lib and on demand.
2025-05-21libc: implement common `abs` for various integer sizes (#23893)David
* libc: implement common `abs` for various integer sizes * libc: move imaxabs to inttypes.zig and don't use cInclude * libc: delete `fabs` c implementations because already implemented in compiler_rt * libc: export functions depending on the target libc Previously all the functions that were exported were handled equally, though some may exist and some not inside the same file. Moving the checks inside the file allows handling different functions differently * remove empty ifs in inttypes Co-authored-by: Alex Rønne Petersen <alex@alexrp.com> * remove empty ifs in stdlib Co-authored-by: Alex Rønne Petersen <alex@alexrp.com> * libc: use `@abs` for the absolute value calculation --------- Co-authored-by: Alex Rønne Petersen <alex@alexrp.com>
2025-02-24mingw: Update MinGW-w64 sources to 3839e21b08807479a31d5a9764666f82ae2f0356.Alex Rønne Petersen
2025-01-14mingw: Add upstream RtlSecureZeroMemory implementation.Alex Rønne Petersen
Closes #22475.
2024-12-14mingw: Update sources to dcd7fefc703fb4b12187235386900d34cc13fdc5.Alex Rønne Petersen
2024-03-27mingw: support -municodeElaine Gibson
2024-03-20mingw-w64: update to latest masterAndrew Kelley
upstream commit 0bac2d3cdb122dadcdee90009f7e24a69d56939f
2024-03-20mingw-w64: update to reflect latest tool changesAndrew Kelley
upstream commit dddccbc3ef50ac52bf00723fd2f68d98140aab80 closes #18968
2024-01-20mingw-w64: remove msvcrt sourcesElaine Gibson
2024-01-20mingw-w64: add missing CRT sourcesElaine Gibson
2024-01-14mingw: Add missing misc/mingw-access.c and misc/ucrt-access.cKrzysztof Wolicki
2024-01-08mingw: remove pow.c from aarch64-windows mingw buildsAndrew Kelley
I observed a duplicate symbol linker error; pow was defined both by mingwex.lib and ucrtbase.dll.
2024-01-08mingw: add the mingw stdio functions backAndrew Kelley
We would rather use the ucrt for these, but sometimes dependencies on the mingw stdio functions creep in. 仕方ない. The cost is only paid if they are used; otherwise the symbols are garbage-collected at link time.
2024-01-08add config.hAndrew Kelley
2024-01-08mingw-w64: update CRT files to latest git commitAndrew Kelley
Upstream commit dddccbc3ef50ac52bf00723fd2f68d98140aab80 * adds ucrtbase.def.in * mingwex: replace mingw crt files with ucrt files * adds missing mingw-w64 ucrt files The rules that govern which set of files are included or excluded is contained in the logic for tools/update_mingw.zig
2023-11-02mingw-w64: add shcore def filesAndrew Kelley
these are copied from mingw-w64 v10.0.0
2023-02-01mingw: stop using K&R-style function definitionspraschke
this patch is from upstream, to fix -Wdeprecated-non-prototypes issues. K&R-style has apparently been deprecated since even C89, and C2x will be repurposing the syntax space. this warning triggers when the change would affect the meaning of the code.
2022-12-28mingw: add missing vscprintf.c fileAndrew Kelley
closes #13733 Thanks to @kcbanner for finding this.
2022-12-10fix aarch64-windows-gnu libcAndrew Kelley
We were missing some math functions. After this enhancement I verified that I was able to cross-compile ninja.exe for aarch64-windows and produce a viable binary.
2022-10-30mingw-w64: add gdiplus def filesAndrew Kelley
closes #13192
2022-10-11update mingw-w64 crt files to v10.0.0Andrew Kelley
2021-11-26mingw-w64: add wsock32 def filesAndrew Kelley
closes #7877
2021-11-26mingw-w64: patch to silence implicit-function-declaration warningsAndrew Kelley
Closes #7356 I did this as a patch to the source rather than passing flags so that it would intentionally be reverted when we update to the next release of mingw-w64. At this time if any warnings are still emitted we should find out why and make sure upstream is aware of the problem.
2021-11-25mingw-w64: add glu32 def filesAndrew Kelley
closes #9372
2021-09-15Added implementation for _fseeki64 and _ftelli64 from mingw-w64 9.0.0 ↵Michal Ziulek
(#9402). (#9766) * Added fseeki64.c from mingw-w64 9.0.0. This file was missing in Zig distribution. This file contains implementation for _fseeki64 and _ftelli64 functions.
2021-09-07changes to build zig-bootstrap aarch64-windowsJonathan Marler
2021-09-07Fix building aarch64-windows-gnu by adding missing libc files and ↵Jonathan Marler
compiler_rt functions (#9555) * fix issue 9519 Added some missing files from mingw * add missing compiler_rt functions * finish PR * add aarch64-windows-gnu to test targets * add more compiler_rt * add log2 * add pow * add modti3
2021-08-20Add compstui.defJonathan Marler
The compstui library contains 4 Windows functions which were recently added to the win32metadta project. I copied this def file from the mingw-w64 project.
2021-07-10mingw-w64: add odbc32 and dbghelp def filesAndrew Kelley
related: #9124
2021-06-04update mingw-w64 crt files to v9.0.0Andrew Kelley
2021-02-10Add more mingw def filesJonathan Marler
I've added more of the ".def" files from mingw. The list is based on all the libraries referenced by the win32metadata project. (see https://github.com/marlersoft/zigwin32).
2020-12-15mingw-w64: add .def files for xaudio2_8Christian Wesselhoeft
2020-12-11mingw-w64: add .def files for xinput1_4Andrew Kelley
closes #7398
2020-12-11mingw-w64: add support for -lwldap32Andrew Kelley
closes #7395
2020-12-09mingw-w64: patch to silence implicit-function-declaration warningsAndrew Kelley
Closes #7356 I did this as a patch to the source rather than passing flags so that it would intentionally be reverted when we update to the next release of mingw-w64. At this time if any warnings are still emitted we should find out why and make sure upstream is aware of the problem.
2020-12-03add more mingw-w64 .def filesAndrew Kelley
closes #7268
2020-11-05Fixed mingw-w64 8.0.0 compilationAlexandros Naskos
Reaplied mingw-w64 header patch
2020-11-05Updated mingw-w64 to version 8.0.0Alexandros Naskos
2020-10-01mingw: Add user32.def for 32bit WindowsLemonBoy
Closes #6479
2020-04-08zig provides shlwapi.lib for *-windows-gnuAndrew Kelley
closes #3711
2020-04-06mingw-w64: add 32-bit version.defAndrew Kelley
fixes -lversion on 32-bit windows builds
2020-04-06provide ___mb_cur_max_func for i386-windows-gnuAndrew Kelley