fix the definition of FOLLY_HAS_STRING_VIEW on Windows
Summary: Update the check in `folly/Portability.h` to handle more recent versions of MSVC that do support `__has_include`. The code on the `__has_include` code path was checking the value of `__cplusplus` rather than `_MSVC_LANG`. Microsoft only defines `__cplusplus` correctly when the compiler is invoked with the `/Zc:__cplusplus` flag. This updates the code to use the `FOLLY_CPLUSPLUS` macro instead. Reviewed By: yfeldblum Differential Revision: D26769080 fbshipit-source-id: e40cfaef967b13d2fe1be2b40a109cb0ed39515a
Showing
Please register or sign in to comment