From 4cea1fb20a1af55e04cc2a03977001042c685dcf Mon Sep 17 00:00:00 2001 From: Jordan Augé Date: Tue, 1 Jun 2021 14:16:04 +0200 Subject: [HICN-706] libhicn: don't use designated initializers on Android MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Change-Id: Iab68f157d9dde478ff10e39faa50d3f43949be7f Signed-off-by: Jordan Augé --- lib/includes/hicn/policy.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/includes/hicn/policy.h b/lib/includes/hicn/policy.h index 3de34ee68..e29888bd2 100644 --- a/lib/includes/hicn/policy.h +++ b/lib/includes/hicn/policy.h @@ -222,7 +222,11 @@ typedef struct { static const hicn_policy_t POLICY_NONE = { .app_name = { 0 }, .tags = { +#ifdef __ANDROID__ +#define _(x, y) { POLICY_STATE_NEUTRAL, 0 }, +#else #define _(x, y) [POLICY_TAG_ ## x] = { POLICY_STATE_NEUTRAL, 0 }, +#endif foreach_policy_tag #undef _ }, -- cgit 1.2.3-korg