diff options
author | Matthias Clasen <matthiasc@src.gnome.org> | 2009-01-03 01:00:38 +0000 |
---|---|---|
committer | Matthias Clasen <matthiasc@src.gnome.org> | 2009-01-03 01:00:38 +0000 |
commit | 6e5efcdb1d18b0d3259967b26801618da1aec568 (patch) | |
tree | 95e81fb947021873828fbab149870320386a021b /configure.in | |
parent | bf201e0fb796b1b012ce1c6dd4993cdb5da58bd6 (diff) | |
download | glib-6e5efcdb1d18b0d3259967b26801618da1aec568.tar.gz |
Use visibility attribute for new enough sun cc. Patch by Chris Wang
* configure.in: Use visibility attribute for new enough sun cc.
Patch by Chris Wang
svn path=/trunk/; revision=7760
Diffstat (limited to 'configure.in')
-rw-r--r-- | configure.in | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/configure.in b/configure.in index 6cfa038d7..6bf37b225 100644 --- a/configure.in +++ b/configure.in @@ -2877,13 +2877,15 @@ _______EOF _______EOF fi cat >>$outfile <<_______EOF -#if defined(__SUNPRO_C) && (__SUNPRO_C >= 0x550) +#if defined(__SUNPRO_C) && (__SUNPRO_C >= 0x590) +#define G_GNUC_INTERNAL __attribute__((visibility("hidden"))) +#elif defined(__SUNPRO_C) && (__SUNPRO_C >= 0x550) #define G_GNUC_INTERNAL __hidden #elif defined (__GNUC__) && defined (G_HAVE_GNUC_VISIBILITY) #define G_GNUC_INTERNAL __attribute__((visibility("hidden"))) #else #define G_GNUC_INTERNAL -#endif +#endif _______EOF |