add m_strchrnul that does what GNU strchrnul does: search for 'c' or
[apps/madmutt.git] / lib-lib / macros.h
index 8eaf0ee..75c734a 100644 (file)
 #ifndef MUTT_LIB_LIB_MACROS_H
 #define MUTT_LIB_LIB_MACROS_H
 
+#ifndef __GNUC__
+#  define __attribute__(a)
+#endif
+
 /*
  * config.h must be included by source file!
  */
 #  define N_(a)    (a)
 #endif
 
+
+#define TRUE 1
+#define FALSE 0
+
+#undef MAX
+#undef MIN
+#define MAX(a,b) ((a) < (b) ? (b) : (a))
+#define MIN(a,b) ((a) < (b) ? (a) : (b))
+
 #endif /* MUTT_LIB_LIB_MACROS_H */