projects
/
ghc-hetmet.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
254528e
)
add RTS_PRIVATE attribute
author
Simon Marlow
<marlowsd@gmail.com>
Sat, 29 Aug 2009 17:17:52 +0000
(17:17 +0000)
committer
Simon Marlow
<marlowsd@gmail.com>
Sat, 29 Aug 2009 17:17:52 +0000
(17:17 +0000)
includes/Rts.h
patch
|
blob
|
history
diff --git
a/includes/Rts.h
b/includes/Rts.h
index
59c8c2d
..
3bec799
100644
(file)
--- 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