summaryrefslogtreecommitdiffstats
path: root/sys/sys/cdefs.h
diff options
context:
space:
mode:
authorpfg <pfg@FreeBSD.org>2015-05-13 15:26:44 +0000
committerpfg <pfg@FreeBSD.org>2015-05-13 15:26:44 +0000
commitc76de635096c209dbc6a8257bebd4708042398c3 (patch)
tree1d0c0e96884431bb1cb4d12abe165190dd866acf /sys/sys/cdefs.h
parent2417d5c110ff70ef34110fdf8c866d831a528965 (diff)
downloadFreeBSD-src-c76de635096c209dbc6a8257bebd4708042398c3.zip
FreeBSD-src-c76de635096c209dbc6a8257bebd4708042398c3.tar.gz
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. MFC after: 1 week
Diffstat (limited to 'sys/sys/cdefs.h')
-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 ab7d59d..a7286ab 100644
--- a/sys/sys/cdefs.h
+++ b/sys/sys/cdefs.h
@@ -464,7 +464,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