diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-11 08:17:27 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-11 08:17:27 +0000 |
commit | f215e02bf85f68d3a6106c2a1f4f7f063f819064 (patch) | |
tree | 6bb5b92c046312c4e95ac2620b10ddf482d3fa8b /src/VBox/Devices/Graphics/shaderlib/wine/include/msvcrt/direct.h | |
parent | Initial commit. (diff) | |
download | virtualbox-f215e02bf85f68d3a6106c2a1f4f7f063f819064.tar.xz virtualbox-f215e02bf85f68d3a6106c2a1f4f7f063f819064.zip |
Adding upstream version 7.0.14-dfsg.upstream/7.0.14-dfsg
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'src/VBox/Devices/Graphics/shaderlib/wine/include/msvcrt/direct.h')
-rw-r--r-- | src/VBox/Devices/Graphics/shaderlib/wine/include/msvcrt/direct.h | 59 |
1 files changed, 59 insertions, 0 deletions
diff --git a/src/VBox/Devices/Graphics/shaderlib/wine/include/msvcrt/direct.h b/src/VBox/Devices/Graphics/shaderlib/wine/include/msvcrt/direct.h new file mode 100644 index 00000000..45db8e2f --- /dev/null +++ b/src/VBox/Devices/Graphics/shaderlib/wine/include/msvcrt/direct.h @@ -0,0 +1,59 @@ +/* + * Path and directory definitions + * + * Derived from the mingw header written by Colin Peters. + * Modified for Wine use by Jon Griffiths and Francois Gouget. + * This file is in the public domain. + */ +#ifndef __WINE_DIRECT_H +#define __WINE_DIRECT_H + +#include <crtdefs.h> + +#include <pshpack8.h> + +#ifdef __cplusplus +extern "C" { +#endif + +#ifndef _DISKFREE_T_DEFINED +#define _DISKFREE_T_DEFINED +struct _diskfree_t { + unsigned int total_clusters; + unsigned int avail_clusters; + unsigned int sectors_per_cluster; + unsigned int bytes_per_sector; +}; +#endif /* _DISKFREE_T_DEFINED */ + +int __cdecl _chdir(const char*); +int __cdecl _chdrive(int); +char* __cdecl _getcwd(char*,int); +char* __cdecl _getdcwd(int,char*,int); +int __cdecl _getdrive(void); +__msvcrt_ulong __cdecl _getdrives(void); +int __cdecl _mkdir(const char*); +int __cdecl _rmdir(const char*); + +#ifndef _WDIRECT_DEFINED +#define _WDIRECT_DEFINED +int __cdecl _wchdir(const wchar_t*); +wchar_t* __cdecl _wgetcwd(wchar_t*,int); +wchar_t* __cdecl _wgetdcwd(int,wchar_t*,int); +int __cdecl _wmkdir(const wchar_t*); +int __cdecl _wrmdir(const wchar_t*); +#endif /* _WDIRECT_DEFINED */ + +#ifdef __cplusplus +} +#endif + + +static inline int chdir(const char* newdir) { return _chdir(newdir); } +static inline char* getcwd(char * buf, int size) { return _getcwd(buf, size); } +static inline int mkdir(const char* newdir) { return _mkdir(newdir); } +static inline int rmdir(const char* dir) { return _rmdir(dir); } + +#include <poppack.h> + +#endif /* __WINE_DIRECT_H */ |