diff --git a/sdk/include/ndk/section_attribs.h b/sdk/include/ndk/section_attribs.h index a35fae81ebc..2d1007aac6a 100644 --- a/sdk/include/ndk/section_attribs.h +++ b/sdk/include/ndk/section_attribs.h @@ -18,7 +18,7 @@ Author: #pragma once -#ifdef __GNUC__ +#if defined(__GNUC__) || defined(__clang__) #define INIT_SECTION __attribute__((section ("INIT"))) #define INIT_FUNCTION __attribute__((section ("INIT")))