Depend on ZNC 1.5 for regex use
authorKyle Fuller <redacted>
Tue, 23 Dec 2014 22:24:38 +0000 (22:24 +0000)
committerKyle Fuller <redacted>
Tue, 23 Dec 2014 22:24:38 +0000 (22:24 +0000)
palaver.cpp

index a3b23019755543f3e7c7a16cb600cb0bdeb03a19..7d81f4af1d9d517b220d9f99e65e57a01fab7fa9 100644 (file)
@@ -7,12 +7,6 @@
 
 #define REQUIRESSL
 
-#if defined(__has_include)
-#if __has_include(<regex>)
-#define HAS_REGEX
-#include <regex>
-#endif
-#endif
 
 #include <znc/Modules.h>
 #include <znc/User.h>
 #include <znc/Chan.h>
 #include <znc/FileUtils.h>
 
+#if defined VERSION_MAJOR && defined VERSION_MINOR && VERSION_MAJOR >= 1 && VERSION_MINOR >= 5
+#if defined(__has_include)
+#if __has_include(<regex>)
+#define HAS_REGEX
+#include <regex>
+#endif
+#endif
+#endif
 
 #ifndef PALAVER_VERSION
        #define PALAVER_VERSION "unknown"
git clone https://git.99rst.org/PROJECT