forked from fmtlib/fmt
Fix intellisense on Windows (#3082)
__INTELLISENSE__ is 1 on vs2022 and clang, causing FMT_HAS_INCLUDE, FMT_USE_FCNTL, etc to be 0. That results in VS and VSCode having a lot of linter errors while code compiles just fine.
This commit is contained in:
@ -69,9 +69,7 @@
|
|||||||
# define FMT_HAS_FEATURE(x) 0
|
# define FMT_HAS_FEATURE(x) 0
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if (defined(__has_include) || FMT_ICC_VERSION >= 1600 || \
|
#if defined(__has_include) || FMT_ICC_VERSION >= 1600 || FMT_MSC_VERSION > 1900
|
||||||
FMT_MSC_VERSION > 1900) && \
|
|
||||||
!defined(__INTELLISENSE__)
|
|
||||||
# define FMT_HAS_INCLUDE(x) __has_include(x)
|
# define FMT_HAS_INCLUDE(x) __has_include(x)
|
||||||
#else
|
#else
|
||||||
# define FMT_HAS_INCLUDE(x) 0
|
# define FMT_HAS_INCLUDE(x) 0
|
||||||
|
Reference in New Issue
Block a user