summaryrefslogtreecommitdiff
blob: 8beb9249292335bc48220e942899b950e95d9431 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
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