3 * This file has no copyright assigned and is placed in the Public Domain.
4 * This file is a part of the mingw-runtime package.
5 * No warranty is given; refer to the file DISCLAIMER within the package.
7 * DOS-specific functions and structures.
14 /* All the headers include this file. */
17 #define __need_wchar_t
20 #endif /* Not RC_INVOKED */
22 /* For DOS file attributes */
31 #ifndef __MSVCRT__ /* these are in CRTDLL, but not MSVCRT */
32 #ifndef __DECLSPEC_SUPPORTED
33 extern unsigned int *_imp___basemajor_dll
;
34 extern unsigned int *_imp___baseminor_dll
;
35 extern unsigned int *_imp___baseversion_dll
;
36 extern unsigned int *_imp___osmajor_dll
;
37 extern unsigned int *_imp___osminor_dll
;
38 extern unsigned int *_imp___osmode_dll
;
40 #define _basemajor (*_imp___basemajor_dll)
41 #define _baseminor (*_imp___baseminor_dll)
42 #define _baseversion (*_imp___baseversion_dll)
43 #define _osmajor (*_imp___osmajor_dll)
44 #define _osminor (*_imp___osminor_dll)
45 #define _osmode (*_imp___osmode_dll)
47 #else /* __DECLSPEC_SUPPORTED */
49 __MINGW_IMPORT
unsigned int _basemajor_dll
;
50 __MINGW_IMPORT
unsigned int _baseminor_dll
;
51 __MINGW_IMPORT
unsigned int _baseversion_dll
;
52 __MINGW_IMPORT
unsigned int _osmajor_dll
;
53 __MINGW_IMPORT
unsigned int _osminor_dll
;
54 __MINGW_IMPORT
unsigned int _osmode_dll
;
56 #define _basemajor _basemajor_dll
57 #define _baseminor _baseminor_dll
58 #define _baseversion _baseversion_dll
59 #define _osmajor _osmajor_dll
60 #define _osminor _osminor_dll
61 #define _osmode _osmode_dll
63 #endif /* __DECLSPEC_SUPPORTED */
64 #endif /* ! __MSVCRT__ */
66 #ifndef _DISKFREE_T_DEFINED
67 /* needed by _getdiskfree (also in direct.h) */
69 unsigned total_clusters
;
70 unsigned avail_clusters
;
71 unsigned sectors_per_cluster
;
72 unsigned bytes_per_sector
;
74 #define _DISKFREE_T_DEFINED
77 _CRTIMP
unsigned __cdecl
_getdiskfree (unsigned, struct _diskfree_t
*);
80 # define diskfree_t _diskfree_t
87 #endif /* Not RC_INVOKED */
89 #endif /* Not _DOS_H_ */