summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorpfg <pfg@FreeBSD.org>2015-05-21 20:39:39 +0000
committerpfg <pfg@FreeBSD.org>2015-05-21 20:39:39 +0000
commita7546825c646ff76e081dd97fabbc456b0757fda (patch)
treeaa970820c80feb88cc6f53f197f90ec9d2be48b1
parent60bdd635db486cdaf2b92710aec25841bc4c60d6 (diff)
downloadFreeBSD-src-a7546825c646ff76e081dd97fabbc456b0757fda.zip
FreeBSD-src-a7546825c646ff76e081dd97fabbc456b0757fda.tar.gz
MFC r282863:
Adjust visibility macros. The GCC visibility attributes were introduced in GCC 4.0. Apparently the "protected" attribute was introduced only until GCC 4.2, but we are not currently using it.
-rw-r--r--sys/sys/cdefs.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/sys/cdefs.h b/sys/sys/cdefs.h
index 2479ab8..5d275db 100644
--- a/sys/sys/cdefs.h
+++ b/sys/sys/cdefs.h
@@ -439,7 +439,7 @@
#define __predict_false(exp) (exp)
#endif
-#if __GNUC_PREREQ__(4, 2)
+#if __GNUC_PREREQ__(4, 0)
#define __hidden __attribute__((__visibility__("hidden")))
#define __exported __attribute__((__visibility__("default")))
#else
OpenPOWER on IntegriCloud