diff options
author | wrowe <wrowe@13f79535-47bb-0310-9956-ffa450edef68> | 2001-09-24 20:46:47 +0000 |
---|---|---|
committer | wrowe <wrowe@13f79535-47bb-0310-9956-ffa450edef68> | 2001-09-24 20:46:47 +0000 |
commit | e5410e666c5267459c39042aabdd278a3b64c52a (patch) | |
tree | 4315b1cdbafa816a332a6ba8134e4467aa40f944 /include/apr.hw | |
parent | 796e0c24db930c309414feb826847e0eee0e169c (diff) | |
download | libapr-e5410e666c5267459c39042aabdd278a3b64c52a.tar.gz |
Let win32 get away with all sorts of abuse at /W4 or /Wall, by ignoring
all errors > /W3 within Win32 header files. But not in _our_ code.
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@62372 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'include/apr.hw')
-rw-r--r-- | include/apr.hw | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/include/apr.hw b/include/apr.hw index ada69538e..0a03170c7 100644 --- a/include/apr.hw +++ b/include/apr.hw @@ -70,6 +70,12 @@ #ifndef APR_H #define APR_H +/* Ignore most warnings (back down to /W3) for poorly constructed headers + */ +#if defined(_MSC_VER) && _MSC_VER >= 1200 +#pragma warning(push, 3) +#endif + /* Has windows.h already been included? If so, our preferences don't matter, * but we will still need the winsock things no matter what was included. * If not, include a restricted set of windows headers to our tastes. @@ -117,6 +123,12 @@ #include <process.h> #include <stdlib.h> +/* Done with badly written headers + */ +#if defined(_MSC_VER) && _MSC_VER >= 1200 +#pragma warning(pop) +#endif + /* disable or reduce the frequency of... * C4057: indirection to slightly different base types * C4075: slight indirection changes (unsigned short* vs short[]) @@ -126,7 +138,7 @@ * C4244: int to char/short - precision loss * */ -#pragma warning(disable: 4100 4127 4201; once: 4057 4075 4244) +#pragma warning(disable: 4100 4127 4201 4514; once: 4057 4075 4244) #define APR_INLINE __inline #define APR_HAS_INLINE 1 |