summaryrefslogtreecommitdiffstats
path: root/src/win32
AgeCommit message (Collapse)AuthorFilesLines
2024-12-11Avoid _get_osfhandle with clang on WindowsDavid Robillard1-0/+12
This function crashes when called in a clang build, I'm not sure why. File locking in general isn't a realiable enough facility, and this API weirdly uses FILE* unlike anything else, adding it was probably a mistake.
2024-12-11Fix clang and clang-tidy warnings on WindowsDavid Robillard1-2/+2
2024-12-11Fix potential null dereferencesDavid Robillard1-1/+3
2024-12-11Fix memory leakDavid Robillard1-5/+4
Also removes the last MAX_PATH buffer limit.
2024-12-11Add ZixDirEntryVisitFuncDavid Robillard1-5/+3
Although this type is only used once in the API, define it to avoid the complicated syntax of inline function pointer parameters, which confuses both people and clang-format.
2024-12-11Support building for UWPDavid Robillard1-14/+47
2024-12-11Support building for Windows with or without UNICODEDavid Robillard4-41/+267
2024-12-11Add option to build for older Windows versionsDavid Robillard1-17/+36
Adds configuration checks for Windows API functions, and a win_ver configuration option to change the targeted API version.
2024-12-11Use DeleteFile() instead of remove()David Robillard1-4/+3
2024-12-11Use CreateDirectory() instead of _mkdir()David Robillard1-4/+3
2024-12-11Fix widening conversions after arithmeticDavid Robillard2-3/+3
2024-11-24Clean up includesDavid Robillard1-1/+1
2024-11-24Add zix_expand_environment_strings()David Robillard1-0/+22
2024-11-23Use angle brackets for library includesDavid Robillard3-9/+9
2023-02-05Fix MinGW buildDavid Robillard1-2/+2
2023-02-04Suppress/fix clang-tidy warnings on WindowsDavid Robillard2-2/+10
2023-02-04Avoid use of rand()David Robillard1-1/+13
2023-02-04Fix clang build on WindowsDavid Robillard1-2/+0
2022-12-18Fix warnings on Windows without CreateSymbolicLinkDavid Robillard1-0/+4
2022-11-13Trim special parsing prefixes from canonical Windows pathsDavid Robillard1-0/+5
There doesn't seem to be any way to cleanly avoid getting these from GetFinalPathNameByHandle, but I don't think portable code would ever want them introduced.
2022-10-23Add filesystem APIDavid Robillard2-0/+345
2022-10-23Split up platform sourcesDavid Robillard2-0/+91
This puts more onus on the build system to do things properly, but it's still easy enough to build, even manually: all the files in the appropriate system subdirectory just need to be included in the build. Otherwise, the several nested levels of preprocessor conditionals get confusing, and clang-format doesn't format code properly.