svn commit: r211959 - stable/8/sys/sys

Konstantin Belousov kib at
Sun Aug 29 08:10:35 UTC 2010

Author: kib
Date: Sun Aug 29 08:10:34 2010
New Revision: 211959

  MFC r211335:
  Add convenience defines for hidden and default/exported attributes.
  MFC r211741:
  Use preferred spelling for the __attribute__.
  MFC r211868:
  Use private namespace for visibility keyword.

Directory Properties:
  stable/8/sys/   (props changed)
  stable/8/sys/amd64/include/xen/   (props changed)
  stable/8/sys/cddl/contrib/opensolaris/   (props changed)
  stable/8/sys/contrib/dev/acpica/   (props changed)
  stable/8/sys/contrib/pf/   (props changed)
  stable/8/sys/dev/xen/xenpci/   (props changed)

Modified: stable/8/sys/sys/cdefs.h
--- stable/8/sys/sys/cdefs.h	Sun Aug 29 05:39:21 2010	(r211958)
+++ stable/8/sys/sys/cdefs.h	Sun Aug 29 08:10:34 2010	(r211959)
@@ -311,6 +311,14 @@
 #define __predict_false(exp)    (exp)
+#if __GNUC_PREREQ__(4, 2)
+#define	__hidden	__attribute__((__visibility__("hidden")))
+#define	__exported	__attribute__((__visibility__("default")))
+#define	__hidden
+#define	__exported
  * We define this here since <stddef.h>, <sys/queue.h>, and <sys/types.h>
  * require it.

More information about the svn-src-all mailing list