From: Kevin Day Date: Sat, 25 Apr 2020 19:04:41 +0000 (-0500) Subject: Feature: enable support default, protected, and hidden GCC visibility macros X-Git-Tag: 0.5.0~332 X-Git-Url: https://git.kevux.org/?a=commitdiff_plain;h=aa1c6d4092f81902c1c0816bd1141abae4cc8c19;p=fll Feature: enable support default, protected, and hidden GCC visibility macros --- 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