Cleaning up compatibility stuff of very old boost versions.
This commit is contained in:
@@ -19,7 +19,6 @@
|
||||
|
||||
#include <boost/asio.hpp>
|
||||
#include <boost/thread.hpp>
|
||||
#include <boost/version.hpp> // solve compatibility issues
|
||||
|
||||
#include <net/socket_startup.h>
|
||||
#include <core/openssl_wrapper.h>
|
||||
@@ -46,20 +45,12 @@ extern "C" {
|
||||
}
|
||||
int gcry_bmutex_lock(void **obj)
|
||||
{
|
||||
#if (BOOST_VERSION) >= 103500
|
||||
((boost::mutex *)(*obj))->lock();
|
||||
#else
|
||||
boost::detail::thread::lock_ops<boost::mutex>::lock(*((boost::mutex *)*obj));
|
||||
#endif
|
||||
return 0;
|
||||
}
|
||||
int gcry_bmutex_unlock(void **obj)
|
||||
{
|
||||
#if (BOOST_VERSION) >= 103500
|
||||
((boost::mutex *)(*obj))->unlock();
|
||||
#else
|
||||
boost::detail::thread::lock_ops<boost::mutex>::unlock(*((boost::mutex *)*obj));
|
||||
#endif
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user