X-Git-Url: http://git.madism.org/?p=apps%2Fmadmutt.git;a=blobdiff_plain;f=lib-lib%2Flib-lib.h;h=04d914c57cd15dda087ddc54969d0097c60b102f;hp=8cd91c2ec4288e112318c862732ad3a87389d803;hb=9b87576a7ebf2e52a7ca6a0e2dba12fa24bd34dd;hpb=d8aeb41018aaf2f85fbd937278ffdd94164e236e diff --git a/lib-lib/lib-lib.h b/lib-lib/lib-lib.h index 8cd91c2..04d914c 100644 --- a/lib-lib/lib-lib.h +++ b/lib-lib/lib-lib.h @@ -20,10 +20,16 @@ #ifndef MUTT_LIB_LIB_LIB_LIB_H #define MUTT_LIB_LIB_LIB_LIB_H -#if HAVE_CONFIG_H -# include "../config.h" +#ifdef HAVE_CONFIG_H +# include #endif +#ifndef __GNUC__ +# define __attribute__(a) +#endif + +/* very common and usual headers we just want to have available {{{ */ + #include #include #include @@ -52,6 +58,7 @@ #elif HAVE_INTTYPES_H # include #endif +#include #ifdef HAVE_SYS_TIME_H # include @@ -65,17 +72,54 @@ #include #endif +/* }}} */ +/* useful and common macros {{{ */ -#include "macros.h" -#include "mem.h" +#ifdef _ +# undef _ +#endif + +#ifdef HAVE_LIBIDN +# include +#define _(a) (gettext(a)) +# ifdef gettext_noop +# define N_(a) gettext_noop(a) +# else +# define N_(a) (a) +# endif +#else +# define _(a) (a) +# define N_(a) (a) +#endif -#include "ascii.h" +#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)) + +/* }}} */ + +typedef union __attribute__((transparent_union)) anytype { + void *ptr; + long li; + int i; + short si; +} anytype; + +#include "mem.h" #include "str.h" +#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"