diff --git a/cmake/templates/vpConfig.h.in b/cmake/templates/vpConfig.h.in index 06022b5d0e..dd4643bae9 100644 --- a/cmake/templates/vpConfig.h.in +++ b/cmake/templates/vpConfig.h.in @@ -613,7 +613,9 @@ namespace vp = VISP_NAMESPACE_NAME; // See https://stackoverflow.com/questions/12530406/is-gcc-4-8-or-earlier-buggy-about-regular-expressions // Calling std::regex lead to a segfault on centos 7.2 that has g++ (GCC) 4.8.5 20150623 (Red Hat 4.8.5-11) #include -#if __cplusplus >= 201103L && \ +#if defined(WINRT) || defined(WIN32) +#define VISP_HAVE_WORKING_REGEX +#elif __cplusplus >= 201103L && \ (!defined(__GLIBCXX__) || (__cplusplus >= 201402L) || \ (defined(_GLIBCXX_REGEX_DFS_QUANTIFIERS_LIMIT) || \ defined(_GLIBCXX_REGEX_STATE_LIMIT) || \