#undef Interlocked before implementing the functions on all architectures.

svn path=/branches/ros-amd64-bringup/; revision=35666
This commit is contained in:
Timo Kreuzer
2008-08-26 11:22:30 +00:00
parent 40b2f18a1c
commit 4d6c63b343
+4 -8
View File
@@ -394,15 +394,7 @@ DllMain(HANDLE hDll,
return TRUE;
}
//wtf
#ifdef _WIN64
#undef InterlockedIncrement
#undef InterlockedDecrement
#undef InterlockedExchange
#undef InterlockedExchangeAdd
#undef InterlockedCompareExchange
#endif
LONG
WINAPI
InterlockedIncrement(IN OUT LONG volatile *lpAddend)
@@ -410,6 +402,7 @@ InterlockedIncrement(IN OUT LONG volatile *lpAddend)
return _InterlockedIncrement(lpAddend);
}
#undef InterlockedDecrement
LONG
WINAPI
InterlockedDecrement(IN OUT LONG volatile *lpAddend)
@@ -417,6 +410,7 @@ InterlockedDecrement(IN OUT LONG volatile *lpAddend)
return _InterlockedDecrement(lpAddend);
}
#undef InterlockedExchange
LONG
WINAPI
InterlockedExchange(IN OUT LONG volatile *Target,
@@ -425,6 +419,7 @@ InterlockedExchange(IN OUT LONG volatile *Target,
return _InterlockedExchange(Target, Value);
}
#undef InterlockedExchangeAdd
LONG
WINAPI
InterlockedExchangeAdd(IN OUT LONG volatile *Addend,
@@ -433,6 +428,7 @@ InterlockedExchangeAdd(IN OUT LONG volatile *Addend,
return _InterlockedExchangeAdd(Addend, Value);
}
#undef InterlockedCompareExchange
LONG
WINAPI
InterlockedCompareExchange(IN OUT LONG volatile *Destination,