Bugzilla bug #53902: a better way to fix the va_list compilation problem

in an older version of NetBSD/macppc.  Thanks to Martin Husemann
<martin@NetBSD.ORG> for the patch.
Modified files: _netbsd.h, prprf.c


git-svn-id: svn://10.0.0.236/trunk@80811 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
wtc%netscape.com 2000-10-10 04:38:55 +00:00
parent bb2ab9fb51
commit f56cd70fb2
2 changed files with 4 additions and 1 deletions

View File

@ -36,6 +36,7 @@
#define nspr_netbsd_defs_h___
#include <sys/syscall.h>
#include <sys/param.h> /* for __NetBSD_Version__ */
#define PR_LINKER_ARCH "netbsd"
#define _PR_SI_SYSNAME "NetBSD"

View File

@ -52,7 +52,9 @@
** and requires array notation.
*/
#if (defined(LINUX) && defined(__powerpc__)) || defined(WIN16) || \
defined(QNX) || (defined(__NetBSD__) && defined(__powerpc__))
defined(QNX) || \
(defined(__NetBSD__) && defined(__powerpc__) && \
__NetBSD_Version__ < 105000000)
#define VARARGS_ASSIGN(foo, bar) foo[0] = bar[0]
#else
#define VARARGS_ASSIGN(foo, bar) (foo) = (bar)