0
0
mirror of https://github.com/OpenVPN/openvpn3.git synced 2024-09-20 12:12:15 +02:00

unittests: helper now defines REGEX_WORKS to 1 if <regex> implementation is usable, and 0 otherwise

Signed-off-by: James Yonan <james@openvpn.net>
This commit is contained in:
James Yonan 2021-06-28 18:50:34 -06:00
parent 39719d64eb
commit 88ca59e0f6

View File

@ -31,6 +31,13 @@
#include <fstream>
#include <mutex>
// does <regex> work?
#if defined(__clang__) || !defined(__GNUC__) || __GNUC__ >= 5
#define REGEX_WORKS 1
#else
#define REGEX_WORKS 0
#endif
namespace openvpn {
class LogOutputCollector : public LogBase
{