tinycc/win32/include/dos.h

56 lines
1.1 KiB
C
Raw Normal View History

2009-07-19 00:06:37 +04:00
/**
* This file has no copyright assigned and is placed in the Public Domain.
* This file is part of the w64 mingw-runtime package.
* No warranty is given; refer to the file DISCLAIMER within this package.
2005-04-17 17:10:37 +04:00
*/
2009-07-19 00:06:37 +04:00
#ifndef _INC_DOS
#define _INC_DOS
2005-04-17 17:10:37 +04:00
#include <_mingw.h>
#include <io.h>
2009-07-19 00:06:37 +04:00
#pragma pack(push,_CRT_PACKING)
2005-04-17 17:10:37 +04:00
#ifdef __cplusplus
extern "C" {
#endif
2009-07-19 00:06:37 +04:00
#ifndef _DISKFREE_T_DEFINED
#define _DISKFREE_T_DEFINED
2005-04-17 17:10:37 +04:00
2009-07-19 00:06:37 +04:00
struct _diskfree_t {
unsigned total_clusters;
unsigned avail_clusters;
unsigned sectors_per_cluster;
unsigned bytes_per_sector;
};
#endif
2005-04-17 17:10:37 +04:00
2009-07-19 00:06:37 +04:00
#define _A_NORMAL 0x00
#define _A_RDONLY 0x01
#define _A_HIDDEN 0x02
#define _A_SYSTEM 0x04
#define _A_SUBDIR 0x10
#define _A_ARCH 0x20
2005-04-17 17:10:37 +04:00
2009-07-19 00:06:37 +04:00
#ifndef _GETDISKFREE_DEFINED
#define _GETDISKFREE_DEFINED
_CRTIMP unsigned __cdecl _getdiskfree(unsigned _Drive,struct _diskfree_t *_DiskFree);
#endif
2005-04-17 17:10:37 +04:00
2009-07-19 00:06:37 +04:00
#if (defined(_X86_) && !defined(__x86_64))
void __cdecl _disable(void);
void __cdecl _enable(void);
#endif
2005-04-17 17:10:37 +04:00
2009-07-19 00:06:37 +04:00
#ifndef NO_OLDNAMES
#define diskfree_t _diskfree_t
2005-04-17 17:10:37 +04:00
#endif
#ifdef __cplusplus
}
#endif
2009-07-19 00:06:37 +04:00
#pragma pack(pop)
#endif