diff --git a/fmt/format.h b/fmt/format.h index 1ce39492..439ba3e7 100644 --- a/fmt/format.h +++ b/fmt/format.h @@ -57,12 +57,11 @@ # define FMT_HAS_STRING_VIEW 1 # define FMT_HAS_EXPERIMENTAL_STRING_VIEW 0 #else +# define FMT_HAS_STRING_VIEW 0 # if (FMT_HAS_INCLUDE() && __cplusplus > 201402L) # include -# define FMT_HAS_STRING_VIEW 0 # define FMT_HAS_EXPERIMENTAL_STRING_VIEW 1 # else -# define FMT_HAS_STRING_VIEW 0 # define FMT_HAS_EXPERIMENTAL_STRING_VIEW 0 # endif #endif diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt index 3dd59fbb..1b25948b 100644 --- a/test/CMakeLists.txt +++ b/test/CMakeLists.txt @@ -11,6 +11,8 @@ target_compile_options(gmock PUBLIC ${CPP11_FLAG}) target_compile_definitions(gmock PUBLIC GTEST_HAS_STD_WSTRING=1) target_include_directories(gmock PUBLIC .) +# Workaround for Cygwin to make google-tests compile and run because the macro +# _POSIX_C_SOURCE must be defined to allow fileno(), strdup(), fdopen() calls. if (CYGWIN) target_compile_definitions(gmock PUBLIC _POSIX_C_SOURCE=200809) endif ()