diff options
author | Panu Matilainen <pmatilai@redhat.com> | 2008-10-09 15:21:15 +0300 |
---|---|---|
committer | Panu Matilainen <pmatilai@redhat.com> | 2008-10-09 15:21:15 +0300 |
commit | be50cb5bf796719f23a446c807d2a79dbc8588a0 (patch) | |
tree | f9dca73233c303dc28fc13453491075a441d4379 /rpmio/rpmutil.h | |
parent | c7bee0c3e6576fc78d7ab3ff64eeef3dda91bf02 (diff) | |
download | librpm-tizen-be50cb5bf796719f23a446c807d2a79dbc8588a0.tar.gz librpm-tizen-be50cb5bf796719f23a446c807d2a79dbc8588a0.tar.bz2 librpm-tizen-be50cb5bf796719f23a446c807d2a79dbc8588a0.zip |
Add RPM_GNUC_INTERNAL macro
- allows portable use of __attribute__((visibility("hidden")))
Diffstat (limited to 'rpmio/rpmutil.h')
-rw-r--r-- | rpmio/rpmutil.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/rpmio/rpmutil.h b/rpmio/rpmutil.h index 325ee0ef7..19a7a9c23 100644 --- a/rpmio/rpmutil.h +++ b/rpmio/rpmutil.h @@ -83,6 +83,13 @@ #define RPM_GNUC_WARN_UNUSED_RESULT #endif /* __GNUC__ */ +#if __GNUC__ >= 4 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 3) +# define RPM_GNUC_INTERNAL __attribute__((visibility("hidden"))) +#else +# define RPM_GNUC_INTERNAL +#endif + + /* Guard C code in headers, while including them from C++ */ #ifdef __cplusplus # define RPM_BEGIN_DECLS extern "C" { |