summaryrefslogtreecommitdiff
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
commit1916c8e6a2807fd326d5421cca1abc0fa8ec487e (patch)
treedc2d53bd1235e833921c44dcee3753f3c02aa504
parent57ead8c26ca4319d5b19651192ad03498a68b7af (diff)
downloadapr-1916c8e6a2807fd326d5421cca1abc0fa8ec487e.tar.gz
Added blocking for MSVC pragma.
git-svn-id: https://svn.apache.org/repos/asf/apr/apr/branches/1.3.x@1085462 13f79535-47bb-0310-9956-ffa450edef68
-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)
{