diff options
author | Arthur de Jong <arthur@arthurdejong.org> | 2008-06-06 16:06:43 +0200 |
---|---|---|
committer | Arthur de Jong <arthur@arthurdejong.org> | 2008-06-06 16:06:43 +0200 |
commit | 4a86f16e54efbf9693529c1bfd2b947146913583 (patch) | |
tree | 6971db94a5d0f455ddcb94a3a6804c2737a28b00 /tests | |
parent | dacd740209fc1fcf474cf247156cfd3bd2b57c7f (diff) |
miscellaneous portability improvements
git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-ldapd@742 ef36b2f9-881f-0410-afb5-c4e39611909c
Diffstat (limited to 'tests')
-rw-r--r-- | tests/test_tio.c | 6 |
1 files changed, 5 insertions, 1 deletions
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, |