use Nhc98BaseConfig.h rather than HsDirectoryConfig.h
[haskell-directory.git] / include / HsDirectory.h
index 7185dc8..e5c4fb3 100644 (file)
@@ -9,7 +9,11 @@
 #ifndef __HSDIRECTORY_H__
 #define __HSDIRECTORY_H__
 
+#ifdef __NHC__
+#include "Nhc98BaseConfig.h"
+#else
 #include "HsDirectoryConfig.h"
+#endif
 // Otherwise these clash with similar definitions from other packages:
 #undef PACKAGE_BUGREPORT
 #undef PACKAGE_NAME
@@ -69,7 +73,6 @@ INLINE HsInt __hscore_long_path_size() {
 #endif
 }
 
-#ifdef __GLASGOW_HASKELL__
 INLINE int __hscore_R_OK() { return R_OK; }
 INLINE int __hscore_W_OK() { return W_OK; }
 INLINE int __hscore_X_OK() { return X_OK; }
@@ -77,7 +80,7 @@ INLINE int __hscore_X_OK() { return X_OK; }
 INLINE mode_t __hscore_S_IRUSR() { return S_IRUSR; }
 INLINE mode_t __hscore_S_IWUSR() { return S_IWUSR; }
 INLINE mode_t __hscore_S_IXUSR() { return S_IXUSR; }
-#endif
+INLINE mode_t __hscore_S_IFDIR() { return S_IFDIR; }
 
 #if defined(__MINGW32__)