summaryrefslogtreecommitdiffstats
path: root/src/shared/json.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/shared/json.h')
-rw-r--r--src/shared/json.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/shared/json.h b/src/shared/json.h
index 278ff77d30..4a21a411ac 100644
--- a/src/shared/json.h
+++ b/src/shared/json.h
@@ -274,9 +274,9 @@ int json_log_internal(JsonVariant *variant, int level, int error, const char *fi
#define JSON_VARIANT_STRING_CONST(x) _JSON_VARIANT_STRING_CONST(UNIQ, (x))
-#define _JSON_VARIANT_STRING_CONST(xq, x) \
+#define _JSON_VARIANT_STRING_CONST(xq, x) \
({ \
- __attribute__((__aligned__(2))) static const char UNIQ_T(json_string_const, xq)[] = (x); \
+ _align_(2) static const char UNIQ_T(json_string_const, xq)[] = (x); \
assert((((uintptr_t) UNIQ_T(json_string_const, xq)) & 1) == 0); \
(JsonVariant*) ((uintptr_t) UNIQ_T(json_string_const, xq) + 1); \
})