Hack around zero vararg macro list on PCC.

This commit is contained in:
gmcgarry 2008-09-03 22:56:51 +00:00
parent a7910f38ac
commit a5659ecaae
1 changed files with 8 additions and 2 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: libhfs.h,v 1.3 2007/03/22 13:21:28 dillo Exp $ */
/* $NetBSD: libhfs.h,v 1.4 2008/09/03 22:56:51 gmcgarry Exp $ */
/*-
* Copyright (c) 2005, 2007 The NetBSD Foundation, Inc.
@ -62,9 +62,15 @@
/* Macros to handle errors in this library. Not recommended outside libhfs.c */
#ifdef __PCC__
#define HFS_LIBERR(format, ...) \
do{ hfslib_error(format, __FILE__, __LINE__ , ##__VA_ARGS__); \
do{ hfslib_error(format, __FILE__, __LINE__); \
goto error; } while(/*CONSTCOND*/ 0)
#else
#define HFS_LIBERR(format, ...) \
do{ hfslib_error(format, __FILE__, __LINE__, ##__VA_ARGS__); \
goto error; } while(/*CONSTCOND*/ 0)
#endif
#if 0
#pragma mark Constants (on-disk)