Disable std::regex use for older gcc versions

This commit is contained in:
Jean-Francois Dockes
2021-08-13 21:38:12 +02:00
parent f91185fd53
commit ce0352eff4
4 changed files with 23 additions and 0 deletions
+7
View File
@@ -67,4 +67,11 @@ typedef int ssize_t;
# define PRETEND_USE(expr) ((void)(expr))
#endif /* PRETEND_USE */
#ifdef __GNUC__
#include <features.h>
#if ! __GNUC_PREREQ(6,0)
#define NO_STD_REGEX 1
#endif
#endif
#endif /* INCLUDED */