aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMauro Sardara <msardara@cisco.com>2021-06-01 12:56:43 +0000
committerGerrit Code Review <gerrit@fd.io>2021-06-01 12:56:43 +0000
commit0c79fa89c95ba5c0e7e4f4f0c66638d3652e1a89 (patch)
treeadda305512604b88533fcd8153aa76ff30f006f4
parentdac884654d61a27b47e30b3cdf752a106ed3ad70 (diff)
parent4cea1fb20a1af55e04cc2a03977001042c685dcf (diff)
Merge "[HICN-706] libhicn: don't use designated initializers on Android"
-rw-r--r--lib/includes/hicn/policy.h4
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 _
},