Branch: Tag:

2011-05-02

2011-05-02 02:33:48 by Per Hedbor <ph@opera.com>

Use visibility("protected") for PMOD_EXPORT functions.

This means that even though the functions will be externally visible, local calls will
be made when they are referenced in the same source-file. This means that overriding with
LD_PRELOAD or similar is not all that reliable (to say the least), but that should not be
an issue, really.

561:   # define PMOD_EXPORT __declspec(dllexport)   # endif   # elif __GNUC__ >= 4 - # define PMOD_EXPORT __attribute__ ((visibility("default"))) + # ifdef DYNAMIC_MODULE + # define PMOD_EXPORT __attribute__ ((visibility("default"))) + # else + # define PMOD_EXPORT __attribute__ ((visibility("protected"))) + # endif   # else   # define PMOD_EXPORT   # endif