]> arthur.barton.de Git - ngircd-alex.git/blobdiff - src/portab/portab.h
Don't play games with FILE* stdin/out/err, only touch "real" descriptors.
[ngircd-alex.git] / src / portab / portab.h
index c911613c08f274c04d6c164db117f079c0b5c1a1..cb50bbd62eaa296c3d1c7f582f28a3d85e51d4cc 100644 (file)
@@ -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.14 2003/03/17 01:12:10 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
@@ -146,6 +146,14 @@ EXTERN size_t strlcpy PARAMS(( CHAR *dst, CONST CHAR *src, size_t size ));
 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
+
 
 #endif