diff options
| author | Alexander Barton <alex@barton.de> | 2003-01-04 10:40:01 +0000 |
|---|---|---|
| committer | Alexander Barton <alex@barton.de> | 2003-01-04 10:40:01 +0000 |
| commit | 444fdcf9057de8591e96cca07aec6999ed82aa5d (patch) | |
| tree | 12877f27cfd753053140a4e1056bc1da28563bb9 /src | |
| parent | 1bf0426aaf2d2eaade13a75e2ccf054db4e079a7 (diff) | |
| download | ngircd-444fdcf9057de8591e96cca07aec6999ed82aa5d.tar.gz ngircd-444fdcf9057de8591e96cca07aec6999ed82aa5d.zip | |
- Check functions only on systems that support prototypes, elder cpmpilers
become confused instead!
Diffstat (limited to 'src')
| -rw-r--r-- | src/portab/portabtest.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/portab/portabtest.c b/src/portab/portabtest.c index 48182ff7..055799ea 100644 --- a/src/portab/portabtest.c +++ b/src/portab/portabtest.c @@ -14,7 +14,7 @@ #include "portab.h" -static char UNUSED id[] = "$Id: portabtest.c,v 1.10 2002/12/26 13:19:36 alex Exp $"; +static char UNUSED id[] = "$Id: portabtest.c,v 1.11 2003/01/04 10:40:01 alex Exp $"; #include "imp.h" #include <stdarg.h> @@ -41,11 +41,13 @@ main( VOID ) if( sizeof( INT32 ) != 4 ) Panic( "INT32", 1 ); if( sizeof( UINT32 ) != 4 ) Panic( "UINT32", 1 ); +#ifdef PROTOTYPES /* check functions */ if( ! snprintf ) Panic( "snprintf", 2 ); if( ! vsnprintf ) Panic( "vsnprintf", 2 ); if( ! strlcpy ) Panic( "strlcpy", 2 ); if( ! strlcat ) Panic( "strlcat", 2 ); +#endif /* ok, no error */ return 0; |