win64: fix resource file support
[tinycc.git] / win32 / include / dos.h
blob294e8fe1b4950a5d3995cd9e3b0d8fe96f862d1f
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_DOS
7 #define _INC_DOS
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
21 struct _diskfree_t {
22 unsigned total_clusters;
23 unsigned avail_clusters;
24 unsigned sectors_per_cluster;
25 unsigned bytes_per_sector;
27 #endif
29 #define _A_NORMAL 0x00
30 #define _A_RDONLY 0x01
31 #define _A_HIDDEN 0x02
32 #define _A_SYSTEM 0x04
33 #define _A_SUBDIR 0x10
34 #define _A_ARCH 0x20
36 #ifndef _GETDISKFREE_DEFINED
37 #define _GETDISKFREE_DEFINED
38 _CRTIMP unsigned __cdecl _getdiskfree(unsigned _Drive,struct _diskfree_t *_DiskFree);
39 #endif
41 #if (defined(_X86_) && !defined(__x86_64))
42 void __cdecl _disable(void);
43 void __cdecl _enable(void);
44 #endif
46 #ifndef NO_OLDNAMES
47 #define diskfree_t _diskfree_t
48 #endif
50 #ifdef __cplusplus
52 #endif
54 #pragma pack(pop)
55 #endif