$NetBSD: patch-ak,v 1.2 2006/07/17 17:41:00 wiz Exp $ --- hdrs/mcprtlib.h.orig 2005-08-18 12:49:24.000000000 +0000 +++ hdrs/mcprtlib.h @@ -46,16 +46,8 @@ up-to-date. Many thanks. 08/10/90 1 nazgul Initial version */ -/* taken from Xm/lib/VaSimple.h - currently no one defines MISSING_STDARG_H */ - -#ifdef I_STDARG # include # define Va_start(a,b) va_start(a,b) -#else -# include -# define Va_start(a,b) va_start(a) -#endif #define MCFree 0x0010 /* Reminder to MCPrintFree */ #define MCCatalog 0x0100 /* Probably came from catalog */ @@ -145,7 +137,7 @@ typedef struct { for (i = 0; i < typeCnt; ++i) { \ switch (typeList[i].type) { \ case MCShortType: \ - typeList[i].u.shortV = va_arg(vl, short); \ + typeList[i].u.shortV = va_arg(vl, int); \ break; \ case MCLongType: \ typeList[i].u.longV = va_arg(vl, long); \ @@ -159,7 +151,7 @@ typedef struct { break; \ #endif*/ \ case MCFloatType: \ - typeList[i].u.floatV = va_arg(vl, float); \ + typeList[i].u.floatV = va_arg(vl, double); \ break; \ case MCStringType: \ typeList[i].u.charPV = va_arg(vl, char *); \