Properly guard imports because they have to be precise on Windows and Darwin sets...
[ghc-hetmet.git] / rts / PrimOps.cmm
index 9f05a03..4cce586 100644 (file)
@@ -27,6 +27,7 @@
 
 #include "Cmm.h"
 
+#ifdef __PIC__
 import __gmpz_init;
 import __gmpz_add;
 import __gmpz_sub;
@@ -46,6 +47,7 @@ import __gmpz_com;
 import base_GHCziIOBase_NestedAtomically_closure;
 import pthread_mutex_lock;
 import pthread_mutex_unlock;
+#endif
 
 /*-----------------------------------------------------------------------------
   Array Primitives