From 63b61cd19ff1ae741a8c3403c1c3fa12bea1c893 Mon Sep 17 00:00:00 2001 From: Christopher Faylor Date: Fri, 4 May 2001 21:02:15 +0000 Subject: 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. --- winsup/cygwin/autoload.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'winsup/cygwin/autoload.cc') diff --git a/winsup/cygwin/autoload.cc b/winsup/cygwin/autoload.cc index 995563ac9..633d91a51 100644 --- a/winsup/cygwin/autoload.cc +++ b/winsup/cygwin/autoload.cc @@ -70,9 +70,9 @@ std_dll_init (HANDLE &dll_handle, const char *dll_name, LONG &here) { HANDLE h; - while (ilockincr (&here)) + while (InterlockedIncrement (&here)) { - ilockdecr (&here); + InterlockedDecrement (&here); Sleep (0); } @@ -83,7 +83,7 @@ std_dll_init (HANDLE &dll_handle, const char *dll_name, LONG &here) else api_fatal ("could not load %s, %E", dll_name); - ilockdecr (&here); + InterlockedDecrement (&here); return 0; } -- cgit v1.2.3