mirror of
https://github.com/OpenVPN/openvpn3.git
synced 2024-09-20 12:12:15 +02:00
LogBase : don't inherit from RC<thread_safe_refcount> if
OPENVPN_LOGBASE_NO_RC is defined.
This commit is contained in:
parent
82f82534ee
commit
801ae7535e
@ -30,11 +30,23 @@
|
||||
#define OPENVPN_LOG_INFO(x) x
|
||||
|
||||
namespace openvpn {
|
||||
|
||||
#ifdef OPENVPN_LOGBASE_NO_RC
|
||||
|
||||
struct LogBase
|
||||
{
|
||||
virtual void log(const std::string& str) = 0;
|
||||
};
|
||||
|
||||
#else
|
||||
|
||||
struct LogBase : public RC<thread_safe_refcount>
|
||||
{
|
||||
typedef RCPtr<LogBase> Ptr;
|
||||
virtual void log(const std::string& str) = 0;
|
||||
};
|
||||
|
||||
#endif
|
||||
}
|
||||
|
||||
#include <openvpn/log/logthread.hpp>
|
||||
|
Loading…
Reference in New Issue
Block a user