From 68abf035c646a54adf7f4e424fcccd1602d23938 Mon Sep 17 00:00:00 2001 From: Timo Kreuzer Date: Sun, 3 Feb 2019 18:04:03 +0100 Subject: [PATCH] [NDK] Fix INIT_SECTION for Clang (use the GCC definition) --- sdk/include/ndk/section_attribs.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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")))