diff options
author | Mauro Sardara <msardara@cisco.com> | 2021-06-01 12:56:43 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@fd.io> | 2021-06-01 12:56:43 +0000 |
commit | 0c79fa89c95ba5c0e7e4f4f0c66638d3652e1a89 (patch) | |
tree | adda305512604b88533fcd8153aa76ff30f006f4 | |
parent | dac884654d61a27b47e30b3cdf752a106ed3ad70 (diff) | |
parent | 4cea1fb20a1af55e04cc2a03977001042c685dcf (diff) |
Merge "[HICN-706] libhicn: don't use designated initializers on Android"
-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 _ }, |