Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
3ad7f772
Commit
3ad7f772
authored
Jan 06, 2009
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
include/msvcrt: Replace va_list by __ms_va_list for x86_64.
parent
4be4b19e
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
25 additions
and
13 deletions
+25
-13
crtdefs.h
include/msvcrt/crtdefs.h
+12
-0
stdio.h
include/msvcrt/stdio.h
+9
-9
wchar.h
include/msvcrt/wchar.h
+4
-4
No files found.
include/msvcrt/crtdefs.h
View file @
3ad7f772
...
...
@@ -68,6 +68,18 @@
# endif
#endif
/* __cdecl */
#ifndef __ms_va_list
# if defined(__x86_64__) && defined (__GNUC__)
# define __ms_va_list __builtin_ms_va_list
# define __ms_va_start(list,arg) __builtin_ms_va_start(list,arg)
# define __ms_va_end(list) __builtin_ms_va_end(list)
# else
# define __ms_va_list va_list
# define __ms_va_start(list,arg) va_start(list,arg)
# define __ms_va_end(list) va_end(list)
# endif
#endif
#ifndef _INTPTR_T_DEFINED
#ifdef _WIN64
typedef
__int64
intptr_t
;
...
...
include/msvcrt/stdio.h
View file @
3ad7f772
...
...
@@ -115,7 +115,7 @@ int __cdecl _setmaxstdio(int);
int
__cdecl
_snprintf
(
char
*
,
size_t
,
const
char
*
,...);
char
*
__cdecl
_tempnam
(
const
char
*
,
const
char
*
);
int
__cdecl
_unlink
(
const
char
*
);
int
__cdecl
_vsnprintf
(
char
*
,
size_t
,
const
char
*
,
va_list
);
int
__cdecl
_vsnprintf
(
char
*
,
size_t
,
const
char
*
,
__ms_
va_list
);
void
__cdecl
clearerr
(
FILE
*
);
int
__cdecl
fclose
(
FILE
*
);
...
...
@@ -155,9 +155,9 @@ int __cdecl sscanf(const char*,const char*,...);
FILE
*
__cdecl
tmpfile
(
void
);
char
*
__cdecl
tmpnam
(
char
*
);
int
__cdecl
ungetc
(
int
,
FILE
*
);
int
__cdecl
vfprintf
(
FILE
*
,
const
char
*
,
va_list
);
int
__cdecl
vprintf
(
const
char
*
,
va_list
);
int
__cdecl
vsprintf
(
char
*
,
const
char
*
,
va_list
);
int
__cdecl
vfprintf
(
FILE
*
,
const
char
*
,
__ms_
va_list
);
int
__cdecl
vprintf
(
const
char
*
,
__ms_
va_list
);
int
__cdecl
vsprintf
(
char
*
,
const
char
*
,
__ms_
va_list
);
#ifndef _WSTDIO_DEFINED
#define _WSTDIO_DEFINED
...
...
@@ -166,7 +166,7 @@ wint_t __cdecl _fputwchar(wint_t);
wchar_t
*
__cdecl
_getws
(
wchar_t
*
);
int
__cdecl
_putws
(
const
wchar_t
*
);
int
__cdecl
_snwprintf
(
wchar_t
*
,
size_t
,
const
wchar_t
*
,...);
int
__cdecl
_vsnwprintf
(
wchar_t
*
,
size_t
,
const
wchar_t
*
,
va_list
);
int
__cdecl
_vsnwprintf
(
wchar_t
*
,
size_t
,
const
wchar_t
*
,
__ms_
va_list
);
FILE
*
__cdecl
_wfdopen
(
int
,
const
wchar_t
*
);
FILE
*
__cdecl
_wfopen
(
const
wchar_t
*
,
const
wchar_t
*
);
FILE
*
__cdecl
_wfreopen
(
const
wchar_t
*
,
const
wchar_t
*
,
FILE
*
);
...
...
@@ -193,9 +193,9 @@ int __cdecl putws(const wchar_t*);
int
__cdecl
swprintf
(
wchar_t
*
,
const
wchar_t
*
,...);
int
__cdecl
swscanf
(
const
wchar_t
*
,
const
wchar_t
*
,...);
wint_t
__cdecl
ungetwc
(
wint_t
,
FILE
*
);
int
__cdecl
vfwprintf
(
FILE
*
,
const
wchar_t
*
,
va_list
);
int
__cdecl
vswprintf
(
wchar_t
*
,
const
wchar_t
*
,
va_list
);
int
__cdecl
vwprintf
(
const
wchar_t
*
,
va_list
);
int
__cdecl
vfwprintf
(
FILE
*
,
const
wchar_t
*
,
__ms_
va_list
);
int
__cdecl
vswprintf
(
wchar_t
*
,
const
wchar_t
*
,
__ms_
va_list
);
int
__cdecl
vwprintf
(
const
wchar_t
*
,
__ms_
va_list
);
int
__cdecl
wprintf
(
const
wchar_t
*
,...);
int
__cdecl
wscanf
(
const
wchar_t
*
,...);
#endif
/* _WSTDIO_DEFINED */
...
...
@@ -218,7 +218,7 @@ static inline char* tempnam(const char *dir, const char *prefix) { return _tempn
static
inline
int
unlink
(
const
char
*
path
)
{
return
_unlink
(
path
);
}
#define _UNLINK_DEFINED
#endif
static
inline
int
vsnprintf
(
char
*
buffer
,
size_t
size
,
const
char
*
format
,
va_list
args
)
{
return
_vsnprintf
(
buffer
,
size
,
format
,
args
);
}
static
inline
int
vsnprintf
(
char
*
buffer
,
size_t
size
,
const
char
*
format
,
__ms_
va_list
args
)
{
return
_vsnprintf
(
buffer
,
size
,
format
,
args
);
}
static
inline
wint_t
fgetwchar
(
void
)
{
return
_fgetwchar
();
}
static
inline
wint_t
fputwchar
(
wint_t
wc
)
{
return
_fputwchar
(
wc
);
}
...
...
include/msvcrt/wchar.h
View file @
3ad7f772
...
...
@@ -275,7 +275,7 @@ wint_t __cdecl _fputwchar(wint_t);
wchar_t
*
__cdecl
_getws
(
wchar_t
*
);
int
__cdecl
_putws
(
const
wchar_t
*
);
int
__cdecl
_snwprintf
(
wchar_t
*
,
size_t
,
const
wchar_t
*
,...);
int
__cdecl
_vsnwprintf
(
wchar_t
*
,
size_t
,
const
wchar_t
*
,
va_list
);
int
__cdecl
_vsnwprintf
(
wchar_t
*
,
size_t
,
const
wchar_t
*
,
__ms_
va_list
);
FILE
*
__cdecl
_wfdopen
(
int
,
const
wchar_t
*
);
FILE
*
__cdecl
_wfopen
(
const
wchar_t
*
,
const
wchar_t
*
);
FILE
*
__cdecl
_wfreopen
(
const
wchar_t
*
,
const
wchar_t
*
,
FILE
*
);
...
...
@@ -302,9 +302,9 @@ int __cdecl putws(const wchar_t*);
int
__cdecl
swprintf
(
wchar_t
*
,
const
wchar_t
*
,...);
int
__cdecl
swscanf
(
const
wchar_t
*
,
const
wchar_t
*
,...);
wint_t
__cdecl
ungetwc
(
wint_t
,
FILE
*
);
int
__cdecl
vfwprintf
(
FILE
*
,
const
wchar_t
*
,
va_list
);
int
__cdecl
vswprintf
(
wchar_t
*
,
const
wchar_t
*
,
va_list
);
int
__cdecl
vwprintf
(
const
wchar_t
*
,
va_list
);
int
__cdecl
vfwprintf
(
FILE
*
,
const
wchar_t
*
,
__ms_
va_list
);
int
__cdecl
vswprintf
(
wchar_t
*
,
const
wchar_t
*
,
__ms_
va_list
);
int
__cdecl
vwprintf
(
const
wchar_t
*
,
__ms_
va_list
);
int
__cdecl
wprintf
(
const
wchar_t
*
,...);
int
__cdecl
wscanf
(
const
wchar_t
*
,...);
#endif
/* _WSTDIO_DEFINED */
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment