diff --git a/include/boost/detail/atomic_count.hpp b/include/boost/detail/atomic_count.hpp index b34dc85..5321232 100644 --- a/include/boost/detail/atomic_count.hpp +++ b/include/boost/detail/atomic_count.hpp @@ -104,19 +104,8 @@ typedef long atomic_count; # include #else -// #warning Unrecognized platform, detail::atomic_count will not be thread safe - -namespace boost -{ - -namespace detail -{ - -typedef long atomic_count; - -} - -} +// Use #define BOOST_DISABLE_THREADS to avoid the error +#error Unrecognized threading platform #endif diff --git a/include/boost/detail/lightweight_mutex.hpp b/include/boost/detail/lightweight_mutex.hpp index da9e575..1310da3 100644 --- a/include/boost/detail/lightweight_mutex.hpp +++ b/include/boost/detail/lightweight_mutex.hpp @@ -82,7 +82,8 @@ # define BOOST_LWM_USE_PTHREADS # include #else -# include +// Use #define BOOST_DISABLE_THREADS to avoid the error +# error Unrecognized threading platform #endif #endif // #ifndef BOOST_DETAIL_LIGHTWEIGHT_MUTEX_HPP_INCLUDED