From 4a86f16e54efbf9693529c1bfd2b947146913583 Mon Sep 17 00:00:00 2001 From: Arthur de Jong Date: Fri, 6 Jun 2008 14:06:43 +0000 Subject: miscellaneous portability improvements git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-ldapd@742 ef36b2f9-881f-0410-afb5-c4e39611909c --- tests/test_tio.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'tests') diff --git a/tests/test_tio.c b/tests/test_tio.c index 82586e4..6f4410d 100644 --- a/tests/test_tio.c +++ b/tests/test_tio.c @@ -36,9 +36,13 @@ #include "common/tio.h" +#ifndef __ASSERT_FUNCTION +#define __ASSERT_FUNCTION "" +#endif /* not __ASSERT_FUNCTION */ + #define assertok(expr) \ ((expr) \ - ? __ASSERT_VOID_CAST (0) \ + ? (void) (0) \ : __assertok_fail(__STRING(expr),__FILE__,__LINE__,__ASSERT_FUNCTION)) static void __assertok_fail(const char *expr,const char *file, -- cgit v1.2.3