apr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From wr...@apache.org
Subject svn commit: r368549 - /apr/apr/trunk/atomic/win32/apr_atomic.c
Date Fri, 13 Jan 2006 01:52:33 GMT
Author: wrowe
Date: Thu Jan 12 17:52:30 2006
New Revision: 368549

URL: http://svn.apache.org/viewcvs?rev=368549&view=rev
Log:

  These args can't be volatile in MSVC 14.

Modified:
    apr/apr/trunk/atomic/win32/apr_atomic.c

Modified: apr/apr/trunk/atomic/win32/apr_atomic.c
URL: http://svn.apache.org/viewcvs/apr/apr/trunk/atomic/win32/apr_atomic.c?rev=368549&r1=368548&r2=368549&view=diff
==============================================================================
--- apr/apr/trunk/atomic/win32/apr_atomic.c (original)
+++ apr/apr/trunk/atomic/win32/apr_atomic.c Thu Jan 12 17:52:30 2006
@@ -106,7 +106,7 @@
 APR_DECLARE(void *) apr_atomic_casptr(volatile void **mem, void *with, const void *cmp)
 {
 #if (defined(_M_IA64) || defined(_M_AMD64)) && !defined(RC_INVOKED)
-    return InterlockedCompareExchangePointer(mem, with, cmp);
+    return InterlockedCompareExchangePointer((void**)mem, with, (void*)cmp);
 #else
     /* Too many VC6 users have stale win32 API files, stub this */
     return ((apr_atomic_win32_ptr_ptr_ptr_fn)InterlockedCompareExchange)(mem, with, cmp);



Mime
View raw message