1 #include "../../../includes/ghcconfig.h"
\r
12 #define INLINE /* nothing */
\r
15 * Following code copied from libraries/base/includes/HsBase.h
\r
19 /* A size that will contain many path names, but not necessarily all
\r
20 * (PATH_MAX is not defined on systems with unlimited path length,
\r
23 INLINE HsInt __compat_long_path_size() { return PATH_MAX; }
\r
25 INLINE HsInt __compat_long_path_size() { return 4096; }
\r
28 #if defined(mingw32_HOST_OS)
\r
30 /* Make sure we've got the reqd CSIDL_ constants in scope;
\r
31 * w32api header files are lagging a bit in defining the full set.
\r
33 #if !defined(CSIDL_APPDATA)
\r
34 #define CSIDL_APPDATA 0x001a
\r
36 #if !defined(CSIDL_PERSONAL)
\r
37 #define CSIDL_PERSONAL 0x0005
\r
39 #if !defined(CSIDL_PROFILE)
\r
40 #define CSIDL_PROFILE 0x0028
\r
42 #if !defined(CSIDL_WINDOWS)
\r
43 #define CSIDL_WINDOWS 0x0024
\r
46 INLINE int __hscore_CSIDL_PROFILE() { return CSIDL_PROFILE; }
\r
47 INLINE int __hscore_CSIDL_APPDATA() { return CSIDL_APPDATA; }
\r
48 INLINE int __hscore_CSIDL_WINDOWS() { return CSIDL_WINDOWS; }
\r
49 INLINE int __hscore_CSIDL_PERSONAL() { return CSIDL_PERSONAL; }
\r