changeset 568:cddbe182ae5e

Cleaned up gcc4 visibility check.
author Ryan C. Gordon <icculus@icculus.org>
date Tue, 05 Jan 2010 14:53:15 -0500
parents 83fff24e5f71
children d48126606f4d
files configure.in
diffstat 1 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/configure.in	Fri Jan 30 19:55:21 2009 -0500
+++ b/configure.in	Tue Jan 05 14:53:15 2010 -0500
@@ -87,7 +87,9 @@
 save_CFLAGS="$CFLAGS"
 CFLAGS="$save_CFLAGS $visibility_CFLAGS"
 AC_TRY_COMPILE([
-int placeholder = 1;
+#if !defined(__GNUC__) || __GNUC__ < 4
+#error SDL only uses visibility attributes in GCC 4 or newer
+#endif
 ],[
 ],[
 have_gcc_fvisibility=yes