Cleaning up compatibility stuff of very old boost versions.

This commit is contained in:
lotodore
2011-03-05 12:26:55 +00:00
parent 9b8e250876
commit 5122c26f8a
3 changed files with 2 additions and 42 deletions
-9
View File
@@ -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;
}