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

This commit is contained in:
Sergey Lyubka committed 2013-09-07 22:04:59 +01:00
1 parent baf4d8af27
commit 3070e8572d
1 file changed
+2 -4
+2 -4
View File
@@ -142,10 +142,8 @@ typedef long off_t;
#define fdopen(x, y) _fdopen((x), (y))
#define write(x, y, z) _write((x), (y), (unsigned) z)
#define read(x, y, z) _read((x), (y), (unsigned) z)
#define flockfile(x) LockFileEx((HANDLE) _get_osfhandle(_fileno(x)), \
LOCKFILE_FAIL_IMMEDIATELY | LOCKFILE_EXCLUSIVE_LOCK, 0, 0, 0, NULL)
#define funlockfile(x) UnlockFileEx((HANDLE) _get_osfhandle(_fileno(x)), \
0, 0, 0, NULL)
#define flockfile(x)
#define funlockfile(x)
#define sleep(x) Sleep((x) * 1000)
#define rmdir(x) _rmdir(x)