From 444d6dc9020a040957ff585893a7979a89833c76 Mon Sep 17 00:00:00 2001 From: Fernando Fernandez Mancera Date: Wed, 25 Sep 2019 15:14:19 +0200 Subject: src: fix doxygen function documentation Currently clang requires EXPORT_SYMBOL() to be above the function implementation. At the same time doxygen is not generating the proper documentation because of that. This patch solves that problem but EXPORT_SYMBOL looks less like the Linux kernel way exporting symbols. Reported-by: Duncan Roe Signed-off-by: Fernando Fernandez Mancera Signed-off-by: Pablo Neira Ayuso --- src/internal.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/internal.h') diff --git a/src/internal.h b/src/internal.h index 3a88d1a..d69eaf3 100644 --- a/src/internal.h +++ b/src/internal.h @@ -3,8 +3,7 @@ #include "config.h" #ifdef HAVE_VISIBILITY_HIDDEN -# define __visible __attribute__((visibility("default"))) -# define EXPORT_SYMBOL(x) typeof(x) (x) __visible +# define EXPORT_SYMBOL __attribute__((visibility("default"))) #else # define EXPORT_SYMBOL #endif -- cgit v1.2.3