Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristopher Faylor <me@cgf.cx>2001-09-05 00:48:45 +0400
committerChristopher Faylor <me@cgf.cx>2001-09-05 00:48:45 +0400
commitc729f22799bcd93a8524619242ce34a2d4fc6edd (patch)
treefd25a8d024fb1a1cd96a8dbf78fdec32b84976ef /winsup/cygwin/thread.cc
parent37f75da24dfd63f71025233f1a139b05f0de0904 (diff)
* thread.cc (InterlockedExchangePointer): Don't define if it already exists.
Diffstat (limited to 'winsup/cygwin/thread.cc')
-rw-r--r--winsup/cygwin/thread.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/winsup/cygwin/thread.cc b/winsup/cygwin/thread.cc
index be7505fe4..543d727c6 100644
--- a/winsup/cygwin/thread.cc
+++ b/winsup/cygwin/thread.cc
@@ -1150,7 +1150,9 @@ __pthread_atforkchild (void)
/*FIXME: implement InterlockExchangePointer and get rid of the silly typecasts below
*/
+#ifndef InterlockedExchangePointer
#define InterlockedExchangePointer InterlockedExchange
+#endif
/*Register a set of functions to run before and after fork.
*prepare calls are called in LI-FC order.