X-Git-Url: http://git.madism.org/?p=apps%2Fmadmutt.git;a=blobdiff_plain;f=lib-lib%2Fmacros.h;h=75c734a946ba531ee0d0b05197479c5b9c9a1f93;hp=e8e6a6126eeba37c175449fd17d2f5fe40322dbf;hb=b36dc16c428cc2b1371bb99c0581aa014f302791;hpb=9a1efcc01ddeca4106847f8eb28a704aca2dcf0b diff --git a/lib-lib/macros.h b/lib-lib/macros.h index e8e6a61..75c734a 100644 --- a/lib-lib/macros.h +++ b/lib-lib/macros.h @@ -1,6 +1,29 @@ +/* + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or (at + * your option) any later version. + * + * This program is distributed in the hope that it will be useful, but + * WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, + * MA 02110-1301, USA. + * + * Copyright © 2006 Pierre Habouzit + */ + #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! */ @@ -22,4 +45,13 @@ # 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 */