From 98766a96f2c5fb8b1395c61b4dce2b5cbb4192a5 Mon Sep 17 00:00:00 2001 From: Thomas Haller Date: Wed, 6 Apr 2016 10:16:06 +0200 Subject: [PATCH] shared: add _nm_packed macro for __attribute__((packed)) (cherry picked from commit 9a1e0b97dab494a419a88960aba09f1c3ccd8b50) --- shared/nm-macros-internal.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/shared/nm-macros-internal.h b/shared/nm-macros-internal.h index 4176231800..384bca66fe 100644 --- a/shared/nm-macros-internal.h +++ b/shared/nm-macros-internal.h @@ -26,7 +26,9 @@ /********************************************************/ -#define nm_auto(fcn) __attribute ((cleanup(fcn))) +#define _nm_packed __attribute__ ((packed)) + +#define nm_auto(fcn) __attribute__ ((cleanup(fcn))) /** * nm_auto_free: