From: Matthias Clasen Date: Tue, 17 Aug 2004 20:28:24 +0000 (+0000) Subject: Check for all four values of the visibility attribute; gcc 2.96 seems to X-Git-Url: http://git.openbox.org/?a=commitdiff_plain;h=a272e118cc3600f57e651bbe2114f5621a547193;p=dana%2Fcg-glib.git Check for all four values of the visibility attribute; gcc 2.96 seems to 2004-08-17 Matthias Clasen * configure.in: Check for all four values of the visibility attribute; gcc 2.96 seems to miss "default". (#150379, Vincent Noel) --- diff --git a/ChangeLog b/ChangeLog index 03d02309..d470a341 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2004-08-17 Matthias Clasen + + * configure.in: Check for all four values of the + visibility attribute; gcc 2.96 seems to miss + "default". (#150379, Vincent Noel) + 2004-08-16 Christian Rose * configure.in: Added "bs" to ALL_LINGUAS. diff --git a/ChangeLog.pre-2-10 b/ChangeLog.pre-2-10 index 03d02309..d470a341 100644 --- a/ChangeLog.pre-2-10 +++ b/ChangeLog.pre-2-10 @@ -1,3 +1,9 @@ +2004-08-17 Matthias Clasen + + * configure.in: Check for all four values of the + visibility attribute; gcc 2.96 seems to miss + "default". (#150379, Vincent Noel) + 2004-08-16 Christian Rose * configure.in: Added "bs" to ALL_LINGUAS. diff --git a/ChangeLog.pre-2-12 b/ChangeLog.pre-2-12 index 03d02309..d470a341 100644 --- a/ChangeLog.pre-2-12 +++ b/ChangeLog.pre-2-12 @@ -1,3 +1,9 @@ +2004-08-17 Matthias Clasen + + * configure.in: Check for all four values of the + visibility attribute; gcc 2.96 seems to miss + "default". (#150379, Vincent Noel) + 2004-08-16 Christian Rose * configure.in: Added "bs" to ALL_LINGUAS. diff --git a/ChangeLog.pre-2-6 b/ChangeLog.pre-2-6 index 03d02309..d470a341 100644 --- a/ChangeLog.pre-2-6 +++ b/ChangeLog.pre-2-6 @@ -1,3 +1,9 @@ +2004-08-17 Matthias Clasen + + * configure.in: Check for all four values of the + visibility attribute; gcc 2.96 seems to miss + "default". (#150379, Vincent Noel) + 2004-08-16 Christian Rose * configure.in: Added "bs" to ALL_LINGUAS. diff --git a/ChangeLog.pre-2-8 b/ChangeLog.pre-2-8 index 03d02309..d470a341 100644 --- a/ChangeLog.pre-2-8 +++ b/ChangeLog.pre-2-8 @@ -1,3 +1,9 @@ +2004-08-17 Matthias Clasen + + * configure.in: Check for all four values of the + visibility attribute; gcc 2.96 seems to miss + "default". (#150379, Vincent Noel) + 2004-08-16 Christian Rose * configure.in: Added "bs" to ALL_LINGUAS. diff --git a/configure.in b/configure.in index c6332191..b024157a 100644 --- a/configure.in +++ b/configure.in @@ -672,13 +672,30 @@ AC_MSG_CHECKING(for GNUC visibility attribute) GLIB_CHECK_COMPILE_WARNINGS([ void __attribute__ ((visibility ("hidden"))) - f (void) + f_hidden (void) +{ +} +void +__attribute__ ((visibility ("internal"))) + f_internal (void) +{ +} +void +__attribute__ ((visibility ("protected"))) + f_protected (void) +{ +} +void +__attribute__ ((visibility ("default"))) + f_default (void) { } - int main (int argc, char **argv) { - f(); + f_hidden(); + f_internal(); + f_protected(); + f_default(); return 0; } ],g_have_gnuc_visibility=yes,g_have_gnuc_visibility=no)