Added SILC Thread Queue API
[crypto.git] / apps / irssi / src / common.h
index ed25e6981646c8c67568bba715ba52bc7cf39371..f3cc8e60962f05b0d0e9b27b910b81e2206466fa 100644 (file)
 #include "config.h"
 #endif
 
+#ifndef PACKAGE
+#define PACKAGE "SILC Client"
+#endif /* PACKAGE */
+
 #include <stdio.h>
 #include <stddef.h>
 #include <stdarg.h>
 #  include <gmodule.h>
 #endif
 
+#ifdef USE_GC
+#  define g_free(x) G_STMT_START { (x) = NULL; } G_STMT_END
+#endif
+
+#if defined (UOFF_T_INT)
+typedef unsigned int uoff_t;
+#elif defined (UOFF_T_LONG)
+typedef unsigned long uoff_t;
+#elif defined (UOFF_T_LONG_LONG)
+typedef unsigned long long uoff_t;
+#else
+#  error uoff_t size not set
+#endif
+
 /* input functions */
 #define G_INPUT_READ   (1 << 0)
 #define G_INPUT_WRITE  (1 << 1)