Revert much of previous erroneous checkin. Add ChangeLog entry.
* pinfo.h: Correctly set __SIGOFFSET. * path.cc (hash_path_name): Avoid calling library functions for simple copying of characters. * shortcut.c: Use WIN32_LEAN_AND_MEAN. * smallprint.c: Ditto. * environ.cc (getwinenv): Minor clarity fix. * localtime.c: No need to include windows.h * string.h: New file.
This commit is contained in:
@@ -1931,9 +1931,9 @@ wsock_init ()
|
||||
static LONG NO_COPY here = -1L;
|
||||
static int NO_COPY wsock_started = 0;
|
||||
|
||||
while (ilockincr (&here))
|
||||
while (InterlockedIncrement (&here))
|
||||
{
|
||||
ilockdecr (&here);
|
||||
InterlockedDecrement (&here);
|
||||
Sleep (0);
|
||||
}
|
||||
if (!wsock_started && (wsock32_handle || ws2_32_handle))
|
||||
@@ -1960,6 +1960,6 @@ wsock_init ()
|
||||
wsock_started = 1;
|
||||
}
|
||||
}
|
||||
ilockdecr (&here);
|
||||
InterlockedDecrement (&here);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user