Commit 3070e857 authored by Sergey Lyubka's avatar Sergey Lyubka

removed file locking on windows, to fix the crash introduced by...

removed file locking on windows, to fix the crash introduced by 52e3be5c
parent baf4d8af
...@@ -142,10 +142,8 @@ typedef long off_t; ...@@ -142,10 +142,8 @@ typedef long off_t;
#define fdopen(x, y) _fdopen((x), (y)) #define fdopen(x, y) _fdopen((x), (y))
#define write(x, y, z) _write((x), (y), (unsigned) z) #define write(x, y, z) _write((x), (y), (unsigned) z)
#define read(x, y, z) _read((x), (y), (unsigned) z) #define read(x, y, z) _read((x), (y), (unsigned) z)
#define flockfile(x) LockFileEx((HANDLE) _get_osfhandle(_fileno(x)), \ #define flockfile(x)
LOCKFILE_FAIL_IMMEDIATELY | LOCKFILE_EXCLUSIVE_LOCK, 0, 0, 0, NULL) #define funlockfile(x)
#define funlockfile(x) UnlockFileEx((HANDLE) _get_osfhandle(_fileno(x)), \
0, 0, 0, NULL)
#define sleep(x) Sleep((x) * 1000) #define sleep(x) Sleep((x) * 1000)
#define rmdir(x) _rmdir(x) #define rmdir(x) _rmdir(x)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment