summaryrefslogtreecommitdiff
path: root/ptw32_InterlockedCompareExchange.c
diff options
context:
space:
mode:
authorrpj <rpj>2011-06-29 05:10:00 +0000
committerrpj <rpj>2011-06-29 05:10:00 +0000
commit3f334b78ab4447a37ed40b34c5fdd1aac76d3df7 (patch)
tree18dee585760e0b4d84efe15647bb5b630621cc7f /ptw32_InterlockedCompareExchange.c
parent26ed1ebeb95caec8d733a6a91e71e31312a8eb06 (diff)
PTW32_INTERLOCKED_* fixups
Diffstat (limited to 'ptw32_InterlockedCompareExchange.c')
-rw-r--r--ptw32_InterlockedCompareExchange.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/ptw32_InterlockedCompareExchange.c b/ptw32_InterlockedCompareExchange.c
index 2a42b22..df0c0cc 100644
--- a/ptw32_InterlockedCompareExchange.c
+++ b/ptw32_InterlockedCompareExchange.c
@@ -49,10 +49,10 @@
* We now use this version wherever possible so we can inline it.
*/
-PTW32_INTERLOCKED_LONG WINAPI
-ptw32_InterlockedCompareExchange (PTW32_INTERLOCKED_LPLONG location,
- PTW32_INTERLOCKED_LONG value,
- PTW32_INTERLOCKED_LONG comparand)
+PTW32_INTERLOCKED_VALUE WINAPI
+ptw32_InterlockedCompareExchange (PTW32_INTERLOCKED_PTR location,
+ PTW32_INTERLOCKED_VALUE value,
+ PTW32_INTERLOCKED_VALUE comparand)
{
#if defined(__WATCOMC__)
@@ -60,7 +60,7 @@ ptw32_InterlockedCompareExchange (PTW32_INTERLOCKED_LPLONG location,
#pragma disable_message (200)
#endif
- PTW32_INTERLOCKED_LONG result;
+ PTW32_INTERLOCKED_VALUE result;
/*
* Using the LOCK prefix on uni-processor machines is significantly slower