forked from boostorg/system
Define BOOST_SYSTEM_DEPRECATED for other compilers
Currently compilation fails with Oracle Developer Studio 12.6, for example: $ ./b2 toolset=sun threading=multi variant=debug link=static cxxflags=-std=c++11 --with-system ... "./boost/system/detail/error_condition.hpp", line 96: Error: BOOST_SYSTEM_DEPRECATED is not defined. "./boost/system/detail/error_condition.hpp", line 96: Error: No direct declarator preceding ""this function is slated for removal"". "./boost/system/detail/error_condition.hpp", line 96: Error: No direct declarator preceding "(".
This commit is contained in:
@@ -60,6 +60,8 @@
|
|||||||
# endif
|
# endif
|
||||||
#elif defined(_MSC_VER)
|
#elif defined(_MSC_VER)
|
||||||
# define BOOST_SYSTEM_DEPRECATED(msg) __declspec(deprecated(msg))
|
# define BOOST_SYSTEM_DEPRECATED(msg) __declspec(deprecated(msg))
|
||||||
|
#else
|
||||||
|
# define BOOST_SYSTEM_DEPRECATED(msg)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#endif // BOOST_SYSTEM_DETAIL_CONFIG_HPP_INCLUDED
|
#endif // BOOST_SYSTEM_DETAIL_CONFIG_HPP_INCLUDED
|
||||||
|
Reference in New Issue
Block a user