X-Git-Url: http://git.madism.org/?p=apps%2Fmadmutt.git;a=blobdiff_plain;f=lib-lib%2Flib-lib.h;h=90cea2f1b4826426257268983afc20dc89597e8a;hp=e969bb5bb0436d97c7eb440a2321425f85cb64f7;hb=5a4df9d0e93209aeade80f632158036799f3e9bc;hpb=1ee89902de184a640c171ae3285bff6882a791bd diff --git a/lib-lib/lib-lib.h b/lib-lib/lib-lib.h index e969bb5..90cea2f 100644 --- a/lib-lib/lib-lib.h +++ b/lib-lib/lib-lib.h @@ -24,6 +24,12 @@ # include "../config.h" #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,10 +67,42 @@ #include #endif -#include "macros.h" +#ifndef _POSIX_PATH_MAX +#include +#endif + +/* }}} */ +/* useful and common macros {{{ */ + +#ifdef _ +# undef _ +#endif + +#ifdef ENABLE_NLS +# 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)) + +/* }}} */ + #include "mem.h" -#include "ascii.h" #include "str.h" #include "buffer.h" #include "date.h"