1 #if __GLASGOW_HASKELL__ < 603
\r
4 #include "ghcconfig.h"
\r
13 #include <windows.h>
\r
16 #define INLINE /* nothing */
\r
19 * Following code copied from libraries/base/includes/HsBase.h
\r
23 /* A size that will contain many path names, but not necessarily all
\r
24 * (PATH_MAX is not defined on systems with unlimited path length,
\r
27 INLINE HsInt __hscore_long_path_size() { return PATH_MAX; }
\r
29 INLINE HsInt __hscore_long_path_size() { return 4096; }
\r
32 #if defined(mingw32_TARGET_OS)
\r
34 /* Make sure we've got the reqd CSIDL_ constants in scope;
\r
35 * w32api header files are lagging a bit in defining the full set.
\r
37 #if !defined(CSIDL_APPDATA)
\r
38 #define CSIDL_APPDATA 0x001a
\r
40 #if !defined(CSIDL_PERSONAL)
\r
41 #define CSIDL_PERSONAL 0x0005
\r
43 #if !defined(CSIDL_PROFILE)
\r
44 #define CSIDL_PROFILE 0x0028
\r
46 #if !defined(CSIDL_WINDOWS)
\r
47 #define CSIDL_WINDOWS 0x0024
\r
50 INLINE int __hscore_CSIDL_PROFILE() { return CSIDL_PROFILE; }
\r
51 INLINE int __hscore_CSIDL_APPDATA() { return CSIDL_APPDATA; }
\r
52 INLINE int __hscore_CSIDL_WINDOWS() { return CSIDL_WINDOWS; }
\r
53 INLINE int __hscore_CSIDL_PERSONAL() { return CSIDL_PERSONAL; }
\r