File tree Expand file tree Collapse file tree 1 file changed +12
-0
lines changed
include/boost/http_proto/detail Expand file tree Collapse file tree 1 file changed +12
-0
lines changed Original file line number Diff line number Diff line change @@ -33,6 +33,18 @@ namespace http_proto {
3333# define BOOST_HTTP_PROTO_DECL
3434# endif
3535
36+ // MSVC-only helpers to locally suppress benign DLL-interface warnings
37+ # if defined(BOOST_MSVC)
38+ # define BOOST_HTTP_PROTO_MSVC_WARNING_PUSH __pragma (warning(push))
39+ # define BOOST_HTTP_PROTO_MSVC_WARNING_POP __pragma (warning(pop))
40+ # define BOOST_HTTP_PROTO_MSVC_DISABLE_4251_4275 \
41+ __pragma (warning(disable:4251 4275 ))
42+ # else
43+ # define BOOST_HTTP_PROTO_MSVC_WARNING_PUSH
44+ # define BOOST_HTTP_PROTO_MSVC_WARNING_POP
45+ # define BOOST_HTTP_PROTO_MSVC_DISABLE_4251_4275
46+ # endif
47+
3648# if !defined(BOOST_HTTP_PROTO_SOURCE) && !defined(BOOST_ALL_NO_LIB) && !defined(BOOST_HTTP_PROTO_NO_LIB)
3749# define BOOST_LIB_NAME boost_http_proto
3850# if defined(BOOST_ALL_DYN_LINK) || defined(BOOST_HTTP_PROTO_DYN_LINK)
You can’t perform that action at this time.
0 commit comments