Add a script to make it easier to initialize /.git
[msysgit/historical-msysgit.git] / mingw / include / dos.h
blobb3aa9aeffd83b807b460c352d6a4375eef54709e
1 /*
2 * dos.h
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.
9 */
11 #ifndef _DOS_H_
12 #define _DOS_H_
14 /* All the headers include this file. */
15 #include <_mingw.h>
17 #define __need_wchar_t
18 #ifndef RC_INVOKED
19 #include <stddef.h>
20 #endif /* Not RC_INVOKED */
22 /* For DOS file attributes */
23 #include <io.h>
25 #ifndef RC_INVOKED
27 #ifdef __cplusplus
28 extern "C" {
29 #endif
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) */
68 struct _diskfree_t {
69 unsigned total_clusters;
70 unsigned avail_clusters;
71 unsigned sectors_per_cluster;
72 unsigned bytes_per_sector;
74 #define _DISKFREE_T_DEFINED
75 #endif
77 _CRTIMP unsigned __cdecl _getdiskfree (unsigned, struct _diskfree_t *);
79 #ifndef _NO_OLDNAMES
80 # define diskfree_t _diskfree_t
81 #endif
83 #ifdef __cplusplus
85 #endif
87 #endif /* Not RC_INVOKED */
89 #endif /* Not _DOS_H_ */