diff --git a/include/date/date.h b/include/date/date.h index 79ab0da..5dedde2 100644 --- a/include/date/date.h +++ b/include/date/date.h @@ -32,7 +32,7 @@ // We did not mean to shout. #ifndef HAS_STRING_VIEW -# if __cplusplus >= 201703 +# if __cplusplus >= 201703 || (defined(_MSVC_LANG) && _MSVC_LANG >= 201703L) # define HAS_STRING_VIEW 1 # else # define HAS_STRING_VIEW 0