Commit Graph

4 Commits

Author SHA1 Message Date
Steve Lhomme f3da50cde9 windows: use inline functions to redirect POSIX file API
Depend on _CRT_INTERNAL_NONSTDC_NAMES to detect if the aliases are
missing or not.
2023-03-03 13:57:15 +00:00
Steve Lhomme 105babe317 windows: use the native read/write/etc calls
When compiling with the GDK the POSIX variants are defined but not available
for linking. We can just the Windows variants that are always available.

Do the proper redirection in our custom unistd.h used with the Platform SDK.
2023-02-28 10:10:27 +00:00
Steve Lhomme 6946b06a17 vlc_fixups: do warn about "deprecated" ANSI calls on Windows GDK
These functions are not available when linking, so we should avoid using them.
Also mingw-w64 understands _CRT_NONSTDC_NO_DEPRECATE but not
_CRT_NONSTDC_NO_WARNINGS.
2023-02-28 10:10:27 +00:00
Steve Lhomme 9f36f8d72c win32: provide a unistd.h when compiling with the Windows SDK 2023-01-11 07:57:22 +00:00