On Windows, when returning memory to the OS, we try to release it
[ghc-hetmet.git] / rts / sm / OSMem.h
index 92fe350..b3003ed 100644 (file)
@@ -9,14 +9,16 @@
 #ifndef SM_OSMEM_H
 #define SM_OSMEM_H
 
-#pragma GCC visibility push(hidden)
+#include "BeginPrivate.h"
 
 void osMemInit(void);
 void *osGetMBlocks(nat n);
+void osFreeMBlocks(char *addr, nat n);
+void osReleaseFreeMemory(void);
 void osFreeAllMBlocks(void);
 lnat getPageSize (void);
 void setExecutable (void *p, lnat len, rtsBool exec);
 
-#pragma GCC visibility pop
+#include "EndPrivate.h"
 
 #endif /* SM_OSMEM_H */