Declare RTS-private prototypes with __attribute__((visibility("hidden")))
[ghc-hetmet.git] / rts / sm / GC.h
index e746f09..2435c6c 100644 (file)
@@ -14,6 +14,8 @@
 #ifndef SM_GC_H
 #define SM_GC_H
 
+#pragma GCC visibility push(hidden)
+
 void GarbageCollect(rtsBool force_major_gc, nat gc_type, Capability *cap);
 
 typedef void (*evac_fn)(void *user, StgClosure **root);
@@ -56,4 +58,6 @@ void releaseGCThreads (Capability *cap);
 
 #define WORK_UNIT_WORDS 128
 
+#pragma GCC visibility pop
+
 #endif /* SM_GC_H */