From c834e0caacaa01a925a5a1e2753a0a22b58a2beb Mon Sep 17 00:00:00 2001 From: kouyq Date: Tue, 10 Dec 2024 21:00:12 +0800 Subject: [PATCH] =?UTF-8?q?win32=E5=B9=B3=E5=8F=B0=E6=B2=A1=E6=9C=89CC=5FF?= =?UTF-8?q?ORMAT=5FPRINTF=E5=AE=8F=E5=AE=9A=E4=B9=89,=20VS2019?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- cocos/platform/CCPlatformMacros.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/cocos/platform/CCPlatformMacros.h b/cocos/platform/CCPlatformMacros.h index 433929d..292de0c 100644 --- a/cocos/platform/CCPlatformMacros.h +++ b/cocos/platform/CCPlatformMacros.h @@ -296,6 +296,8 @@ private: varType varName; public: virtual inline varType get##funName() const { #elif defined(__has_attribute) #if __has_attribute(format) #define CC_FORMAT_PRINTF(formatPos, argPos) __attribute__((__format__(printf, formatPos, argPos))) + #else + #define CC_FORMAT_PRINTF(formatPos, argPos) #endif // __has_attribute(format) #else #define CC_FORMAT_PRINTF(formatPos, argPos)