From 96807c4c05e1e76b8bbf00d874a28a279e7d2840 Mon Sep 17 00:00:00 2001 From: Pablo Neira Ayuso Date: Tue, 1 Sep 2015 19:34:18 +0200 Subject: src: add compat header file definitions This patch restores the original nft_* definitions from the header files to avoid sudden compilation breakage of the existing clients of this library. Then, moving forward the idea is to deprecate the old nft_* symbols anytime soon using __attribute__((deprecated)) from the header files to warn our users that they need to update their code. Signed-off-by: Pablo Neira Ayuso --- include/utils.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'include/utils.h') diff --git a/include/utils.h b/include/utils.h index 7a46725..f7436fa 100644 --- a/include/utils.h +++ b/include/utils.h @@ -10,7 +10,7 @@ #include "config.h" #ifdef HAVE_VISIBILITY_HIDDEN # define __visible __attribute__((visibility("default"))) -# define EXPORT_SYMBOL(x, y) typeof(x) (x) __visible; __typeof (x) y __attribute ((alias (#x), visibility ("default"))) +# define EXPORT_SYMBOL(x, y) typeof(x) (x) __visible; __typeof (y) y __attribute ((alias (#x), visibility ("default"))) #else # define EXPORT_SYMBOL #endif -- cgit v1.2.3