diff -u -r3.30 -r3.31 --- nsprpub/pr/include/prtypes.h 29 Apr 2005 21:02:54 -0000 3.30 +++ nsprpub/pr/include/prtypes.h 13 Oct 2005 17:43:36 -0000 3.31 @@ -178,7 +178,9 @@ #else /* Unix */ -#ifdef HAVE_VISIBILITY_PRAGMA +/* GCC 3.3 and later support the visibility attribute. */ +#if (__GNUC__ >= 4) || \ + (__GNUC__ == 3 && __GNUC_MINOR__ >= 3) #define PR_VISIBILITY_DEFAULT __attribute__((visibility("default"))) #else #define PR_VISIBILITY_DEFAULT