X-Git-Url: http://git.madism.org/?a=blobdiff_plain;f=lib-lib%2Flib-lib.h;h=c254e95e5baa5e4705b34fa7dc0e9d824e71c650;hb=8db3fe9c19320b6f6e508d6b1aae03980239a930;hp=e969bb5bb0436d97c7eb440a2321425f85cb64f7;hpb=1ee89902de184a640c171ae3285bff6882a791bd;p=apps%2Fmadmutt.git diff --git a/lib-lib/lib-lib.h b/lib-lib/lib-lib.h index e969bb5..c254e95 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 @@ -46,6 +52,7 @@ #ifdef HAVE_UNISTD_H # include #endif + #if HAVE_STDINT_H # include #elif HAVE_INTTYPES_H @@ -60,16 +67,58 @@ #include #endif -#include "macros.h" -#include "mem.h" +#ifndef _POSIX_PATH_MAX +#include +#endif + +/* }}} */ +/* useful and common macros {{{ */ + +#ifdef _ +# undef _ +#endif -#include "ascii.h" +#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 + +#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 "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"