mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-08-21 08:28:53 +02:00
Move the compiler-dependency in the G_GNUC_INTERNAL definition from
2007-05-17 Matthias Clasen <mclasen@redhat.com> * configure.in: Move the compiler-dependency in the G_GNUC_INTERNAL definition from configure-time to runtime (of the compiler). (#438869, Damien Carbery) * glib/gdebug.h: * glib/gmessages.h: * glib/gunicodeprivate.h: * glib/gthreadprivate.h: Move G_GNUC_INTERNAL before function declarations to fix compilation with sun studio. (#438873, Damien Carbery) svn path=/trunk/; revision=5497
This commit is contained in:
committed by
Matthias Clasen
parent
552ca1e23a
commit
793da74d00
18
configure.in
18
configure.in
@@ -2508,26 +2508,18 @@ _______EOF
|
||||
|
||||
fi
|
||||
|
||||
if test x$g_have_gnuc_visibility = xyes ; then
|
||||
cat >>$outfile <<_______EOF
|
||||
#if __GNUC__ == 2 && __GNUC_MINOR__ == 95
|
||||
#define G_GNUC_INTERNAL
|
||||
#else
|
||||
#elif defined (__GNUC__) && ((__GNUC__ * 100 + __GNUC_MINOR__) >= 303)
|
||||
#define G_HAVE_GNUC_VISIBILITY 1
|
||||
#define G_GNUC_INTERNAL __attribute__((visibility("hidden")))
|
||||
#elif defined(__SUNPRO_C) && (__SUNPRO_C >= 0x550)
|
||||
#define G_GNUC_INTERNAL __hidden
|
||||
#else
|
||||
#define G_GNUC_INTERNAL
|
||||
#endif
|
||||
_______EOF
|
||||
else
|
||||
if test x$g_have_sunstudio_visibility = xyes ; then
|
||||
cat >>$outfile <<_______EOF
|
||||
#define G_GNUC_INTERNAL __hidden
|
||||
_______EOF
|
||||
else
|
||||
cat >>$outfile <<_______EOF
|
||||
#define G_GNUC_INTERNAL
|
||||
_______EOF
|
||||
fi
|
||||
fi
|
||||
|
||||
|
||||
echo >>$outfile
|
||||
|
Reference in New Issue
Block a user