2 * Path and directory definitions
4 * Derived from the mingw header written by Colin Peters.
5 * Modified for Wine use by Jon Griffiths and Francois Gouget.
6 * This file is in the public domain.
8 #ifndef __WINE_DIRECT_H
9 #define __WINE_DIRECT_H
10 #ifndef __WINE_USE_MSVCRT
11 #define __WINE_USE_MSVCRT
20 #ifndef _WCHAR_T_DEFINED
21 #define _WCHAR_T_DEFINED
23 typedef unsigned short wchar_t;
27 #if !defined(_MSC_VER) && !defined(__int64)
28 #define __int64 long long
31 #if defined(__x86_64__) && !defined(_WIN64)
35 #ifndef _SIZE_T_DEFINED
37 typedef unsigned __int64
size_t;
39 typedef unsigned int size_t;
41 #define _SIZE_T_DEFINED
44 #ifndef _DISKFREE_T_DEFINED
45 #define _DISKFREE_T_DEFINED
47 unsigned int total_clusters
;
48 unsigned int avail_clusters
;
49 unsigned int sectors_per_cluster
;
50 unsigned int bytes_per_sector
;
52 #endif /* _DISKFREE_T_DEFINED */
54 int _chdir(const char*);
56 char* _getcwd(char*,int);
57 char* _getdcwd(int,char*,int);
59 unsigned long _getdrives(void);
60 int _mkdir(const char*);
61 int _rmdir(const char*);
63 #ifndef _WDIRECT_DEFINED
64 #define _WDIRECT_DEFINED
65 int _wchdir(const wchar_t*);
66 wchar_t* _wgetcwd(wchar_t*,int);
67 wchar_t* _wgetdcwd(int,wchar_t*,int);
68 int _wmkdir(const wchar_t*);
69 int _wrmdir(const wchar_t*);
70 #endif /* _WDIRECT_DEFINED */
77 static inline int chdir(const char* newdir
) { return _chdir(newdir
); }
78 static inline char* getcwd(char * buf
, int size
) { return _getcwd(buf
, size
); }
79 static inline int mkdir(const char* newdir
) { return _mkdir(newdir
); }
80 static inline int rmdir(const char* dir
) { return _rmdir(dir
); }
84 #endif /* __WINE_DIRECT_H */