Message ID | 1460447801-8686-3-git-send-email-anders.roxell@linaro.org |
---|---|
State | New |
Headers | show |
diff --git a/platform/linux-generic/include/odp_internal.h b/platform/linux-generic/include/odp_internal.h index e33a49e..08624ae 100644 --- a/platform/linux-generic/include/odp_internal.h +++ b/platform/linux-generic/include/odp_internal.h @@ -22,6 +22,12 @@ extern "C" { #include <stdio.h> #include <sys/types.h> +#if defined(__GNUC__) +# define HIDDEN __attribute__((visibility("hidden"))) +#else +# define HIDDEN +#endif + extern __thread int __odp_errno; #define MAX_CPU_NUMBER 128
The hidden attribute allows functions to be hidden from the public ABI. Internal functions should not be part of symbols that are visible outside the library. Suggested-by: Ricardo Salveti <ricardo.salveti@linaro.org> Signed-off-by: Anders Roxell <anders.roxell@linaro.org> --- platform/linux-generic/include/odp_internal.h | 6 ++++++ 1 file changed, 6 insertions(+)