summaryrefslogtreecommitdiff
path: root/includes/Rts.h
diff options
context:
space:
mode:
authorSimon Marlow <marlowsd@gmail.com>2009-08-29 17:17:52 +0000
committerSimon Marlow <marlowsd@gmail.com>2009-08-29 17:17:52 +0000
commit90d1deddda8123c46c4d029439591075ff310fb4 (patch)
treecb132e254ca7015a5742a5c41ecc1c110e1504e5 /includes/Rts.h
parent254528e32a007e508bb5967948ba02aa15c7e482 (diff)
downloadhaskell-90d1deddda8123c46c4d029439591075ff310fb4.tar.gz
add RTS_PRIVATE attribute
Diffstat (limited to 'includes/Rts.h')
-rw-r--r--includes/Rts.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/includes/Rts.h b/includes/Rts.h
index 59c8c2d3a6..3bec799585 100644
--- a/includes/Rts.h
+++ b/includes/Rts.h
@@ -48,6 +48,11 @@ extern "C" {
#define ATTRIBUTE_ALIGNED(n) /*nothing*/
#endif
+// Symbols that are extern, but private to the RTS, are declared
+// with visibility "hidden" to hide them outside the RTS shared
+// library.
+#define RTS_PRIVATE GNUC3_ATTRIBUTE(visibility("hidden"))
+
/* Fix for mingw stat problem (done here so it's early enough) */
#ifdef mingw32_HOST_OS
#define __MSVCRT__ 1