mirror of
https://github.com/osmarks/ngircd.git
synced 2024-12-13 10:20:28 +00:00
- Check functions only on systems that support prototypes, elder cpmpilers
become confused instead!
This commit is contained in:
parent
1bf0426aaf
commit
444fdcf905
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user