зеркало из https://github.com/mozilla/gecko-dev.git
Final portion of the fix for bug 20882. Just a cleaner way of doing what is already being done.
This commit is contained in:
Родитель
54aa51a733
Коммит
9587f6dc46
|
@ -50,11 +50,11 @@
|
|||
** Note: on some platforms va_list is defined as an array,
|
||||
** and requires array notation.
|
||||
*/
|
||||
#if (defined(linux) && defined(__powerpc__)) || (defined(__QNX__) && !defined(NTO)) || defined(WIN16)
|
||||
#define VARARGS_ASSIGN(foo, bar) foo[0] = bar[0]
|
||||
#ifdef HAVE_VA_LIST_AS_ARRAY
|
||||
#define VARARGS_ASSIGN(foo, bar) foo[0] = bar[0]
|
||||
#else
|
||||
#define VARARGS_ASSIGN(foo, bar) (foo) = (bar)
|
||||
#endif /* Linux/PPC || WIN16 */
|
||||
#define VARARGS_ASSIGN(foo, bar) (foo) = (bar)
|
||||
#endif
|
||||
|
||||
/*
|
||||
** WARNING: This code may *NOT* call JS_LOG (because JS_LOG calls it)
|
||||
|
|
|
@ -932,7 +932,7 @@ XPCConvert::JSErrorToXPCException(JSContext* cx,
|
|||
** Note: on some platforms va_list is defined as an array,
|
||||
** and requires array notation.
|
||||
*/
|
||||
#if (defined(linux) && defined(__powerpc__)) || (defined(__QNX__) && !defined(NTO)) || defined(WIN16)
|
||||
#ifdef HAVE_VA_LIST_AS_ARRAY
|
||||
#define VARARGS_ASSIGN(foo, bar) foo[0] = bar[0]
|
||||
#else
|
||||
#define VARARGS_ASSIGN(foo, bar) (foo) = (bar)
|
||||
|
|
|
@ -41,11 +41,10 @@
|
|||
** Note: on some platforms va_list is defined as an array,
|
||||
** and requires array notation.
|
||||
*/
|
||||
#if (defined(LINUX) && defined(__powerpc__)) || defined(WIN16) || \
|
||||
defined(QNX) || (defined(__NetBSD__) && defined(__powerpc__))
|
||||
#define VARARGS_ASSIGN(foo, bar) foo[0] = bar[0]
|
||||
#ifdef HAVE_VA_LIST_AS_ARRAY
|
||||
#define VARARGS_ASSIGN(foo, bar) foo[0] = bar[0]
|
||||
#else
|
||||
#define VARARGS_ASSIGN(foo, bar) (foo) = (bar)
|
||||
#define VARARGS_ASSIGN(foo, bar) (foo) = (bar)
|
||||
#endif
|
||||
|
||||
/*
|
||||
|
|
Загрузка…
Ссылка в новой задаче