Skip to content
This repository has been archived by the owner on Nov 17, 2020. It is now read-only.

Commit

Permalink
Use visibility attribute for new enough sun cc. Patch by Chris Wang
Browse files Browse the repository at this point in the history
        * configure.in: Use visibility attribute for new enough sun cc.
        Patch by Chris Wang


svn path=/trunk/; revision=7760
  • Loading branch information
Matthias Clasen committed Jan 3, 2009
1 parent bf201e0 commit 6e5efcd
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
7 changes: 7 additions & 0 deletions ChangeLog
@@ -1,3 +1,10 @@
2009-01-02 Matthias Clasen <mclasen@redhat.com>

Bug 564210 – SUN Studio 12 has supported visibility attribute

* configure.in: Use visibility attribute for new enough sun cc.
Patch by Chris Wang

2008-12-30 Matthias Clasen <mclasen@redhat.com>

Bug 565905 – There is no named g_context_group_set_translation_domain()
Expand Down
6 changes: 4 additions & 2 deletions configure.in
Expand Up @@ -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


Expand Down

0 comments on commit 6e5efcd

Please sign in to comment.