Skip to content

Commit

Permalink
Cleaned up gcc4 visibility check.
Browse files Browse the repository at this point in the history
  • Loading branch information
icculus committed Jan 5, 2010
1 parent f82913d commit 76a5b87
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion configure.in
Expand Up @@ -87,7 +87,9 @@ visibility_CFLAGS="-fvisibility=hidden"
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
Expand Down

0 comments on commit 76a5b87

Please sign in to comment.