From 2dc5b63508670ddd4a9a21744537acfd3154e473 Mon Sep 17 00:00:00 2001 From: Thomas Haller Date: Thu, 24 Jun 2021 10:47:57 +0200 Subject: [PATCH] std-aux: add _nm_deprecated() macro --- src/libnm-std-aux/nm-std-aux.h | 1 + 1 file changed, 1 insertion(+) diff --git a/src/libnm-std-aux/nm-std-aux.h b/src/libnm-std-aux/nm-std-aux.h index 49ec8aab0c..5bcb311d3a 100644 --- a/src/libnm-std-aux/nm-std-aux.h +++ b/src/libnm-std-aux/nm-std-aux.h @@ -24,6 +24,7 @@ #define _nm_section(s) __attribute__((__section__(s))) #define _nm_alignof(type) __alignof(type) #define _nm_alignas(type) _nm_align(_nm_alignof(type)) +#define _nm_deprecated(msg) __attribute__((__deprecated__(msg))) #define nm_auto(fcn) __attribute__((__cleanup__(fcn))) /* This is required to make LTO working.