1
0
Fork 0
mirror of https://github.com/tobast/libunwind-eh_elf.git synced 2024-12-26 21:13:42 +01:00

(cmpchg_ptr): Cast first argument to "volatile long *", since that is what the

Intel compiler wants.

(Logical change 1.70)
This commit is contained in:
mostang.com!davidm 2003-03-28 07:43:22 +00:00
parent 9fe5e68f40
commit 271d7065c2

View file

@ -103,7 +103,7 @@ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */
# endif
# define cmpxchg_ptr(_ptr,_o,_n) \
((void *) __sync_val_compare_and_swap((long *) (_ptr), \
((void *) __sync_val_compare_and_swap((volatile long *) (_ptr), \
(long) (_o), (long) (_n)))
#endif