From cb29dec4ed6bd31a32bf470bc23353215c376aba Mon Sep 17 00:00:00 2001 From: Evgenii Kliuchnikov Date: Tue, 26 Aug 2025 12:47:50 -0700 Subject: [PATCH] Introduce BROTLI_COLD PiperOrigin-RevId: 799674933 --- c/common/platform.h | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/c/common/platform.h b/c/common/platform.h index 9db12f9..e665cec 100644 --- a/c/common/platform.h +++ b/c/common/platform.h @@ -605,4 +605,10 @@ BROTLI_UNUSED_FUNCTION void BrotliSuppressUnusedFunctions(void) { #define BROTLI_MODEL(M) /* M */ #endif +#if BROTLI_GNUC_HAS_ATTRIBUTE(cold, 4, 3, 0) +#define BROTLI_COLD __attribute__((cold)) +#else +#define BROTLI_COLD /* cold */ +#endif + #endif /* BROTLI_COMMON_PLATFORM_H_ */