From aa1c6d4092f81902c1c0816bd1141abae4cc8c19 Mon Sep 17 00:00:00 2001 From: Kevin Day Date: Sat, 25 Apr 2020 14:04:41 -0500 Subject: [PATCH] Feature: enable support default, protected, and hidden GCC visibility macros --- level_0/f_type/c/type.h | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/level_0/f_type/c/type.h b/level_0/f_type/c/type.h index fc849bc..2cbf88c 100644 --- a/level_0/f_type/c/type.h +++ b/level_0/f_type/c/type.h @@ -196,11 +196,12 @@ extern "C" { * Use these macros for GCC-specific tweaks so that if GCC is not supported then they can be easily disabled. * * f_gcc_attribute_visibility_internal provides a way to make some functions effectively private. - * - * @todo there is probably some sort of macro that GCC likely defines that can be utilized here to automatically enable/disable this. */ #ifndef _di_f_gcc_specific_ - #define f_gcc_attribute_visibility_internal __attribute__((visibility("internal"))) + #define f_gcc_attribute_visibility_default __attribute__((visibility("default"))) + #define f_gcc_attribute_visibility_hidden __attribute__((visibility("hidden"))) + #define f_gcc_attribute_visibility_internal __attribute__((visibility("internal"))) + #define f_gcc_attribute_visibility_protected __attribute__((visibility("protected"))) #endif // _di_f_gcc_specific_ #ifdef __cplusplus -- 1.8.3.1