mirror of
https://github.com/reactos/reactos.git
synced 2025-08-05 16:43:04 +00:00
Enable a few definitions for amd64, too
svn path=/trunk/; revision=45054
This commit is contained in:
parent
68ca27a00d
commit
40a5eb2996
1 changed files with 4 additions and 3 deletions
|
@ -152,7 +152,7 @@ extern "C" {
|
||||||
_CRTIMP extern char *_sys_errlist[];
|
_CRTIMP extern char *_sys_errlist[];
|
||||||
_CRTIMP extern int _sys_nerr;
|
_CRTIMP extern int _sys_nerr;
|
||||||
|
|
||||||
#if !defined(__x86_64)
|
//#if !defined(__x86_64)
|
||||||
_CRTIMP int *__cdecl __p___argc(void);
|
_CRTIMP int *__cdecl __p___argc(void);
|
||||||
_CRTIMP char ***__cdecl __p___argv(void);
|
_CRTIMP char ***__cdecl __p___argv(void);
|
||||||
_CRTIMP wchar_t ***__cdecl __p___wargv(void);
|
_CRTIMP wchar_t ***__cdecl __p___wargv(void);
|
||||||
|
@ -160,7 +160,7 @@ extern "C" {
|
||||||
_CRTIMP wchar_t ***__cdecl __p__wenviron(void);
|
_CRTIMP wchar_t ***__cdecl __p__wenviron(void);
|
||||||
_CRTIMP char **__cdecl __p__pgmptr(void);
|
_CRTIMP char **__cdecl __p__pgmptr(void);
|
||||||
_CRTIMP wchar_t **__cdecl __p__wpgmptr(void);
|
_CRTIMP wchar_t **__cdecl __p__wpgmptr(void);
|
||||||
#endif
|
//#endif
|
||||||
#ifndef __argc
|
#ifndef __argc
|
||||||
#ifdef _MSVCRT_
|
#ifdef _MSVCRT_
|
||||||
extern int __argc;
|
extern int __argc;
|
||||||
|
@ -292,7 +292,8 @@ extern "C" {
|
||||||
#define _countof(_Array) (sizeof(_Array) / sizeof(_Array[0]))
|
#define _countof(_Array) (sizeof(_Array) / sizeof(_Array[0]))
|
||||||
#else
|
#else
|
||||||
extern "C++" {
|
extern "C++" {
|
||||||
template <typename _CountofType,size_t _SizeOfArray> char (*__countof_helper(UNALIGNED _CountofType (&_Array)[_SizeOfArray]))[_SizeOfArray];
|
template <typename _CountofType,size_t _SizeOfArray>
|
||||||
|
char (*__countof_helper(/*UNALIGNED*/ _CountofType (&_Array)[_SizeOfArray]))[_SizeOfArray];
|
||||||
#define _countof(_Array) sizeof(*__countof_helper(_Array))
|
#define _countof(_Array) sizeof(*__countof_helper(_Array))
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue