Cleaning up compatibility stuff of very old boost versions.
This commit is contained in:
1 parent
9b8e250876
commit
5122c26f8a
3 files changed
+2
-42
No files matched your search
@@ -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