Add some useful macros.
[apps/madmutt.git] / lib-lib / lib-lib.h
index 6dd3900..72ba9aa 100644 (file)
@@ -21,7 +21,7 @@
 #define MUTT_LIB_LIB_LIB_LIB_H
 
 #ifdef HAVE_CONFIG_H
-# include "../config.h"
+# include <config.h>
 #endif
 
 #ifndef __GNUC__
@@ -58,6 +58,7 @@
 #elif HAVE_INTTYPES_H
 # include <inttypes.h>
 #endif
+#include <stdbool.h>
 
 #ifdef HAVE_SYS_TIME_H
 # include <sys/time.h>
@@ -78,7 +79,7 @@
 #  undef _
 #endif
 
-#ifdef ENABLE_NLS
+#ifdef HAVE_LIBIDN
 #  include <libintl.h>
 #define _(a)       (gettext(a))
 #  ifdef gettext_noop
 #define MAX(a,b) ((a) < (b) ? (b) : (a))
 #define MIN(a,b) ((a) < (b) ? (a) : (b))
 
+#define __must_check__  __attribute__((warn_unused_result))
+#define IGNORE(expr)  do { if (expr) (void)0; } while (0)
+
 /* }}} */
 
 typedef union __attribute__((transparent_union)) anytype {
@@ -113,11 +117,12 @@ typedef union __attribute__((transparent_union)) anytype {
 #include "utf8.h"
 
 #include "array.h"
+#include "bits.h"
 #include "buffer.h"
-#include "date.h"
 #include "file.h"
 #include "hash.h"
 #include "list.h"
+#include "md5.h"
 #include "mapping.h"
 #include "rx.h"
 #include "url.h"