define CC_FORMAT_PRINTF on msvc intellisense (#485)

This commit is contained in:
iAndyHD3 2024-02-04 01:56:47 +01:00 committed by GitHub
parent c00ccd35b1
commit 4f4f14241b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -426,7 +426,7 @@ public: \
* but __has_attribute(format) is undefined, * but __has_attribute(format) is undefined,
* leaving CC_FORMAT_PRINTF undefined by default. * leaving CC_FORMAT_PRINTF undefined by default.
*/ */
#elif defined(__has_attribute) #elif defined(__has_attribute) && !defined(_MSC_VER)
#if __has_attribute(format) #if __has_attribute(format)
#define CC_FORMAT_PRINTF(formatPos, argPos) \ #define CC_FORMAT_PRINTF(formatPos, argPos) \
__attribute__((__format__(printf, formatPos, argPos))) __attribute__((__format__(printf, formatPos, argPos)))