]> arthur.barton.de Git - ngircd-alex.git/blobdiff - src/portab/portab.h
Fixed a possible buffer underrun when reading the MOTD file. Thanks to
[ngircd-alex.git] / src / portab / portab.h
index 83f82ed6ac7baf43e57807afb2ca3435d6c579ff..cb50bbd62eaa296c3d1c7f582f28a3d85e51d4cc 100644 (file)
@@ -1,6 +1,6 @@
 /*
  * ngIRCd -- The Next Generation IRC Daemon
- * Copyright (c)2001,2002 by Alexander Barton (alex@barton.de)
+ * Copyright (c)2001-2003 by Alexander Barton (alex@barton.de)
  *
  * This program is free software; you can redistribute it and/or modify
  * it under the terms of the GNU General Public License as published by
@@ -8,7 +8,7 @@
  * (at your option) any later version.
  * Please read the file COPYING, README and AUTHORS for more information.
  *
- * $Id: portab.h,v 1.11 2002/12/26 14:48:05 alex Exp $
+ * $Id: portab.h,v 1.17 2004/03/15 19:26:39 alex Exp $
  *
  * Portability functions and declarations (header for libngbportab).
  */
 #include "config.h"
 
 #ifdef HAVE_SYS_TYPES_H
-#include <sys/types.h>
+# include <sys/types.h>
 #endif
 
 
 /* compiler features */
 
-#ifdef __GNUC__
+#if (__GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 7))
 # define PUNUSED(x) __attribute__ ((unused)) x
 # define UNUSED     __attribute__ ((unused))
 #else
@@ -129,24 +129,29 @@ typedef UINT8 BOOLEAN;
 #define socklen_t int                  /* u.a. fuer Mac OS X */
 #endif
 
-#if OS_UNIX_AUX
-#define _POSIX_SOURCE                  /* muss unter A/UX definiert sein */
-#endif
-
 #ifndef HAVE_SNPRINTF
-EXTERN INT snprintf( CHAR *str, size_t count, CONST CHAR *fmt, ... );
+EXTERN INT snprintf PARAMS(( CHAR *str, size_t count, CONST CHAR *fmt, ... ));
 #endif
 
 #ifndef HAVE_STRLCAT
-EXTERN size_t strlcat( CHAR *dst, CONST CHAR *src, size_t size );
+EXTERN size_t strlcat PARAMS(( CHAR *dst, CONST CHAR *src, size_t size ));
 #endif
 
 #ifndef HAVE_STRLCPY
-EXTERN size_t strlcpy( CHAR *dst, CONST CHAR *src, size_t size );
+EXTERN size_t strlcpy PARAMS(( CHAR *dst, CONST CHAR *src, size_t size ));
 #endif
 
 #ifndef HAVE_VSNPRINTF
-EXTERN INT vsnprintf( CHAR *str, size_t count, CONST CHAR *fmt, va_list args );
+#include <stdarg.h>
+EXTERN INT vsnprintf PARAMS(( CHAR *str, size_t count, CONST CHAR *fmt, va_list args ));
+#endif
+
+#ifndef PACKAGE_NAME
+#define PACKAGE_NAME PACKAGE
+#endif
+
+#ifndef PACKAGE_VERSION
+#define PACKAGE_VERSION VERSION
 #endif