[UCRT] Make includes unix compatible

This commit is contained in:
Timo Kreuzer 2024-11-27 13:58:34 +02:00
parent 90dad446b7
commit 2eb3149565
5 changed files with 8 additions and 8 deletions

View file

@ -7,7 +7,7 @@
//
#include <corecrt_internal.h>
#include <io.h>
#include <sys\stat.h>
#include <sys/stat.h>
#include <corecrt_internal_win32_buffer.h>
// Changes the mode of a file. The only supported mode bit is _S_IWRITE, which

View file

@ -7,7 +7,7 @@
//
#include <corecrt_internal.h>
#include <io.h>
#include <sys\stat.h>
#include <sys/stat.h>

View file

@ -6,7 +6,7 @@
// Defines _locking(), which locks and unlocks regions of a file.
//
#include <corecrt_internal_lowio.h>
#include <sys\locking.h>
#include <sys/locking.h>
@ -106,7 +106,7 @@ extern "C" int __cdecl _locking(int const fh, int const locking_mode, long const
{
errno = EBADF;
_doserrno = 0;
_ASSERTE(("Invalid file descriptor. File possibly closed by a different thread",0));
_ASSERTE(("Invalid file descriptor. File possibly closed by a different thread",0));
__leave;
}

View file

@ -10,7 +10,7 @@
*******************************************************************************/
#include <corecrt_internal_lowio.h>
#include <sys\stat.h>
#include <sys/stat.h>
extern "C" { int _umaskval = 0; }

View file

@ -7,8 +7,8 @@
// process started execution.
//
#include <corecrt_internal_time.h>
#include <sys\timeb.h>
#include <sys\types.h>
#include <sys/timeb.h>
#include <sys/types.h>
@ -51,7 +51,7 @@ extern "C" int __cdecl __acrt_initialize_clock()
!QueryPerformanceCounter(&local_start_count) ||
local_frequency.QuadPart == 0)
{
source_frequency = -1;
source_frequency = -1;
start_count = -1;
return 0;
}