diff options
Diffstat (limited to 'gir/gmodule-2.0.c')
-rw-r--r-- | gir/gmodule-2.0.c | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/gir/gmodule-2.0.c b/gir/gmodule-2.0.c index 145d4772..a57ce315 100644 --- a/gir/gmodule-2.0.c +++ b/gir/gmodule-2.0.c @@ -55,9 +55,15 @@ /** * G_MODULE_EXPORT: * - * Used to declare functions exported by modules. This is a no-op on Linux - * and Unices, but when compiling for Windows, it marks a symbol to be - * exported from the library or executable being built. + * Used to declare functions exported by libraries or modules. + * + * When compiling for Windows, it marks the symbol as `dllexport`. + * + * When compiling for Linux and Unices, it marks the symbol as having `default` + * visibility. This is no-op unless the code is being compiled with a + * non-default + * [visibility flag](https://gcc.gnu.org/onlinedocs/gcc/Code-Gen-Options.html#index-fvisibility-1260) + * such as `hidden`. */ |