diff options
author | Jordan Augé <jordan.auge+fdio@cisco.com> | 2021-06-01 14:16:04 +0200 |
---|---|---|
committer | Jordan Augé <jordan.auge+fdio@cisco.com> | 2021-06-01 14:16:04 +0200 |
commit | 4cea1fb20a1af55e04cc2a03977001042c685dcf (patch) | |
tree | 2fbe2fa46146b8aae5cd88f5a0e33acb26a2e041 /lib/includes | |
parent | 7ca1c947dacd1cedee1a574228d2897277198907 (diff) |
[HICN-706] libhicn: don't use designated initializers on Android
Change-Id: Iab68f157d9dde478ff10e39faa50d3f43949be7f
Signed-off-by: Jordan Augé <jordan.auge+fdio@cisco.com>
Diffstat (limited to 'lib/includes')
-rw-r--r-- | lib/includes/hicn/policy.h | 4 |
1 files changed, 4 insertions, 0 deletions
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 _ }, |