From 271d7065c25b9c7561b312d9ee795cd4ba91c208 Mon Sep 17 00:00:00 2001 From: "mostang.com!davidm" Date: Fri, 28 Mar 2003 07:43:22 +0000 Subject: [PATCH] (cmpchg_ptr): Cast first argument to "volatile long *", since that is what the Intel compiler wants. (Logical change 1.70) --- include/internal.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/internal.h b/include/internal.h index 470bbfb8..9e6ca253 100644 --- a/include/internal.h +++ b/include/internal.h @@ -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