VirtualBox

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

最後變更 在這個檔案從28475是 28475,由 vboxsync 提交於 15 年 前

crOpenGL: update to wine 1.1.43

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

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