summaryrefslogtreecommitdiff
path: root/atomic/win32
diff options
context:
space:
mode:
authorGuenter Knauf <fuankg@apache.org>2011-03-25 16:45:00 +0000
committerGuenter Knauf <fuankg@apache.org>2011-03-25 16:45:00 +0000
commitd9bbe37b5c0ecaaace8fed43bdc93fb609cf8923 (patch)
tree3a92c7074e0ffa1921e77988640dea80cd513547 /atomic/win32
parent4b7a6f61dd2b388e9a63de68b0bd503d048b520f (diff)
downloadapr-d9bbe37b5c0ecaaace8fed43bdc93fb609cf8923.tar.gz
Added blocking for MSVC pragma.
git-svn-id: https://svn.apache.org/repos/asf/apr/apr/branches/1.5.x@1085462 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'atomic/win32')
-rw-r--r--atomic/win32/apr_atomic.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/atomic/win32/apr_atomic.c b/atomic/win32/apr_atomic.c
index 973c679e5..1ed7df893 100644
--- a/atomic/win32/apr_atomic.c
+++ b/atomic/win32/apr_atomic.c
@@ -54,7 +54,9 @@ APR_DECLARE(apr_uint32_t) apr_atomic_add32(volatile apr_uint32_t *mem, apr_uint3
}
/* Of course we want the 2's compliment of the unsigned value, val */
+#ifdef _MSC_VER
#pragma warning(disable: 4146)
+#endif
APR_DECLARE(void) apr_atomic_sub32(volatile apr_uint32_t *mem, apr_uint32_t val)
{