Skip to content

Commit

Permalink
Fix detection of std::regex on windows
Browse files Browse the repository at this point in the history
  • Loading branch information
fspindle committed Sep 30, 2024
1 parent 4c27c7c commit b9095ad
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion cmake/templates/vpConfig.h.in
Original file line number Diff line number Diff line change
Expand Up @@ -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 <regex>
#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) || \
Expand Down

0 comments on commit b9095ad

Please sign in to comment.