From 4f4f14241bdf3548de0716cfbdb661007c2acb32 Mon Sep 17 00:00:00 2001 From: iAndyHD3 <54410739+iAndyHD3@users.noreply.github.com> Date: Sun, 4 Feb 2024 01:56:47 +0100 Subject: [PATCH] define CC_FORMAT_PRINTF on msvc intellisense (#485) --- loader/include/Geode/cocos/platform/CCPlatformMacros.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/loader/include/Geode/cocos/platform/CCPlatformMacros.h b/loader/include/Geode/cocos/platform/CCPlatformMacros.h index 009c8aea..72f7ae95 100644 --- a/loader/include/Geode/cocos/platform/CCPlatformMacros.h +++ b/loader/include/Geode/cocos/platform/CCPlatformMacros.h @@ -426,7 +426,7 @@ public: \ * but __has_attribute(format) is undefined, * leaving CC_FORMAT_PRINTF undefined by default. */ -#elif defined(__has_attribute) +#elif defined(__has_attribute) && !defined(_MSC_VER) #if __has_attribute(format) #define CC_FORMAT_PRINTF(formatPos, argPos) \ __attribute__((__format__(printf, formatPos, argPos)))