зеркало из https://github.com/mozilla/pjs.git
Bug 561974 - typo _WIN64 define in toolkit/components/ctypes/tests/. r=dwitte
This commit is contained in:
Родитель
c209a5ea2d
Коммит
cba74924a2
|
@ -119,7 +119,7 @@ sum_many_##name##_cdecl( \
|
||||||
#include "typedefs.h"
|
#include "typedefs.h"
|
||||||
#undef ABI
|
#undef ABI
|
||||||
|
|
||||||
#if defined(_WIN32) && !defined(__WIN64)
|
#if defined(_WIN32) && !defined(_WIN64)
|
||||||
|
|
||||||
void NS_STDCALL
|
void NS_STDCALL
|
||||||
test_void_t_stdcall()
|
test_void_t_stdcall()
|
||||||
|
@ -132,7 +132,7 @@ test_void_t_stdcall()
|
||||||
#include "typedefs.h"
|
#include "typedefs.h"
|
||||||
#undef ABI
|
#undef ABI
|
||||||
|
|
||||||
#endif /* defined(_WIN32) && !defined(__WIN64) */
|
#endif /* defined(_WIN32) && !defined(_WIN64) */
|
||||||
|
|
||||||
#define DEFINE_TYPE(name, type, ffiType) \
|
#define DEFINE_TYPE(name, type, ffiType) \
|
||||||
struct align_##name { \
|
struct align_##name { \
|
||||||
|
@ -319,13 +319,13 @@ test_closure_cdecl(PRInt8 i, PRInt32 (*f)(PRInt8))
|
||||||
return f(i);
|
return f(i);
|
||||||
}
|
}
|
||||||
|
|
||||||
#if defined(_WIN32) && !defined(__WIN64)
|
#if defined(_WIN32) && !defined(_WIN64)
|
||||||
PRInt32
|
PRInt32
|
||||||
test_closure_cdecl(PRInt8 i, PRInt32 (NS_STDCALL *f)(PRInt8))
|
test_closure_cdecl(PRInt8 i, PRInt32 (NS_STDCALL *f)(PRInt8))
|
||||||
{
|
{
|
||||||
return f(i);
|
return f(i);
|
||||||
}
|
}
|
||||||
#endif /* defined(_WIN32) && !defined(__WIN64) */
|
#endif /* defined(_WIN32) && !defined(_WIN64) */
|
||||||
|
|
||||||
template <typename T> struct PromotedTraits {
|
template <typename T> struct PromotedTraits {
|
||||||
typedef T type;
|
typedef T type;
|
||||||
|
|
|
@ -69,7 +69,7 @@ NS_EXTERN_C
|
||||||
|
|
||||||
#include "typedefs.h"
|
#include "typedefs.h"
|
||||||
|
|
||||||
#if defined(_WIN32) && !defined(__WIN64)
|
#if defined(_WIN32) && !defined(_WIN64)
|
||||||
EXPORT_STDCALL(void) test_void_t_stdcall();
|
EXPORT_STDCALL(void) test_void_t_stdcall();
|
||||||
|
|
||||||
EXPORT_STDCALL(void*) get_voidptr_t_stdcall();
|
EXPORT_STDCALL(void*) get_voidptr_t_stdcall();
|
||||||
|
@ -89,7 +89,7 @@ NS_EXTERN_C
|
||||||
|
|
||||||
#include "typedefs.h"
|
#include "typedefs.h"
|
||||||
|
|
||||||
#endif /* defined(_WIN32) && !defined(__WIN64) */
|
#endif /* defined(_WIN32) && !defined(_WIN64) */
|
||||||
|
|
||||||
NS_EXPORT PRInt32 test_ansi_len(const char*);
|
NS_EXPORT PRInt32 test_ansi_len(const char*);
|
||||||
NS_EXPORT PRInt32 test_wide_len(const PRUnichar*);
|
NS_EXPORT PRInt32 test_wide_len(const PRUnichar*);
|
||||||
|
@ -189,9 +189,9 @@ NS_EXTERN_C
|
||||||
NS_EXPORT void * test_fnptr();
|
NS_EXPORT void * test_fnptr();
|
||||||
|
|
||||||
NS_EXPORT PRInt32 test_closure_cdecl(PRInt8, PRInt32 (*)(PRInt8));
|
NS_EXPORT PRInt32 test_closure_cdecl(PRInt8, PRInt32 (*)(PRInt8));
|
||||||
#if defined(_WIN32) && !defined(__WIN64)
|
#if defined(_WIN32) && !defined(_WIN64)
|
||||||
NS_EXPORT PRInt32 test_closure_stdcall(PRInt8, PRInt32 (NS_STDCALL *)(PRInt8));
|
NS_EXPORT PRInt32 test_closure_stdcall(PRInt8, PRInt32 (NS_STDCALL *)(PRInt8));
|
||||||
#endif /* defined(_WIN32) && !defined(__WIN64) */
|
#endif /* defined(_WIN32) && !defined(_WIN64) */
|
||||||
|
|
||||||
NS_EXPORT PRInt32 test_callme(PRInt8);
|
NS_EXPORT PRInt32 test_callme(PRInt8);
|
||||||
NS_EXPORT void* test_getfn();
|
NS_EXPORT void* test_getfn();
|
||||||
|
|
Загрузка…
Ссылка в новой задаче