win64: use new headers from mingw
[tinycc/kirr.git] / win32 / include / direct.h
blob99ce69db700b33a615172824cf0c827fa642215e
1 /**
2 * This file has no copyright assigned and is placed in the Public Domain.
3 * This file is part of the w64 mingw-runtime package.
4 * No warranty is given; refer to the file DISCLAIMER within this package.
5 */
6 #ifndef _INC_DIRECT
7 #define _INC_DIRECT
9 #include <_mingw.h>
10 #include <io.h>
12 #pragma pack(push,_CRT_PACKING)
14 #ifdef __cplusplus
15 extern "C" {
16 #endif
18 #ifndef _DISKFREE_T_DEFINED
19 #define _DISKFREE_T_DEFINED
20 struct _diskfree_t {
21 unsigned total_clusters;
22 unsigned avail_clusters;
23 unsigned sectors_per_cluster;
24 unsigned bytes_per_sector;
26 #endif
28 _CRTIMP char *__cdecl _getcwd(char *_DstBuf,int _SizeInBytes);
29 _CRTIMP char *__cdecl _getdcwd(int _Drive,char *_DstBuf,int _SizeInBytes);
30 char *__cdecl _getdcwd_nolock(int _Drive,char *_DstBuf,int _SizeInBytes);
31 _CRTIMP int __cdecl _chdir(const char *_Path);
32 _CRTIMP int __cdecl _mkdir(const char *_Path);
33 _CRTIMP int __cdecl _rmdir(const char *_Path);
34 _CRTIMP int __cdecl _chdrive(int _Drive);
35 _CRTIMP int __cdecl _getdrive(void);
36 _CRTIMP unsigned long __cdecl _getdrives(void);
38 #ifndef _GETDISKFREE_DEFINED
39 #define _GETDISKFREE_DEFINED
40 _CRTIMP unsigned __cdecl _getdiskfree(unsigned _Drive,struct _diskfree_t *_DiskFree);
41 #endif
43 #ifndef _WDIRECT_DEFINED
44 #define _WDIRECT_DEFINED
45 _CRTIMP wchar_t *__cdecl _wgetcwd(wchar_t *_DstBuf,int _SizeInWords);
46 _CRTIMP wchar_t *__cdecl _wgetdcwd(int _Drive,wchar_t *_DstBuf,int _SizeInWords);
47 wchar_t *__cdecl _wgetdcwd_nolock(int _Drive,wchar_t *_DstBuf,int _SizeInWords);
48 _CRTIMP int __cdecl _wchdir(const wchar_t *_Path);
49 _CRTIMP int __cdecl _wmkdir(const wchar_t *_Path);
50 _CRTIMP int __cdecl _wrmdir(const wchar_t *_Path);
51 #endif
53 #ifndef NO_OLDNAMES
55 #define diskfree_t _diskfree_t
57 char *__cdecl getcwd(char *_DstBuf,int _SizeInBytes);
58 int __cdecl chdir(const char *_Path);
59 int __cdecl mkdir(const char *_Path);
60 int __cdecl rmdir(const char *_Path);
61 #endif
63 #ifdef __cplusplus
65 #endif
67 #pragma pack(pop)
68 #endif