VirtualBox

source: vbox/trunk/src/VBox/Additions/WINNT/Graphics/Wine/include/msvcrt/direct.h@ 19711

最後變更 在這個檔案從19711是 19678,由 vboxsync 提交於 16 年 前

opengl: update wine to 1.1.21, add d3d9.dll to build list

  • 屬性 svn:eol-style 設為 native
檔案大小: 2.0 KB
 
1/*
2 * Path and directory definitions
3 *
4 * Derived from the mingw header written by Colin Peters.
5 * Modified for Wine use by Jon Griffiths and Francois Gouget.
6 * This file is in the public domain.
7 */
8/*
9 * Sun LGPL Disclaimer: For the avoidance of doubt, except that if any license choice
10 * other than GPL or LGPL is available it will apply instead, Sun elects to use only
11 * the Lesser General Public License version 2.1 (LGPLv2) at this time for any software where
12 * a choice of LGPL license versions is made available with the language indicating
13 * that LGPLv2 or any later version may be used, or where a choice of which version
14 * of the LGPL is applied is otherwise unspecified.
15 */
16
17#ifndef __WINE_DIRECT_H
18#define __WINE_DIRECT_H
19
20#include <crtdefs.h>
21
22#include <pshpack8.h>
23
24#ifdef __cplusplus
25extern "C" {
26#endif
27
28#ifndef _DISKFREE_T_DEFINED
29#define _DISKFREE_T_DEFINED
30struct _diskfree_t {
31 unsigned int total_clusters;
32 unsigned int avail_clusters;
33 unsigned int sectors_per_cluster;
34 unsigned int bytes_per_sector;
35};
36#endif /* _DISKFREE_T_DEFINED */
37
38int __cdecl _chdir(const char*);
39int __cdecl _chdrive(int);
40char* __cdecl _getcwd(char*,int);
41char* __cdecl _getdcwd(int,char*,int);
42int __cdecl _getdrive(void);
43unsigned long __cdecl _getdrives(void);
44int __cdecl _mkdir(const char*);
45int __cdecl _rmdir(const char*);
46
47#ifndef _WDIRECT_DEFINED
48#define _WDIRECT_DEFINED
49int __cdecl _wchdir(const wchar_t*);
50wchar_t* __cdecl _wgetcwd(wchar_t*,int);
51wchar_t* __cdecl _wgetdcwd(int,wchar_t*,int);
52int __cdecl _wmkdir(const wchar_t*);
53int __cdecl _wrmdir(const wchar_t*);
54#endif /* _WDIRECT_DEFINED */
55
56#ifdef __cplusplus
57}
58#endif
59
60
61static inline int chdir(const char* newdir) { return _chdir(newdir); }
62static inline char* getcwd(char * buf, int size) { return _getcwd(buf, size); }
63static inline int mkdir(const char* newdir) { return _mkdir(newdir); }
64static inline int rmdir(const char* dir) { return _rmdir(dir); }
65
66#include <poppack.h>
67
68#endif /* __WINE_DIRECT_H */
注意: 瀏覽 TracBrowser 來幫助您使用儲存庫瀏覽器

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette