X-Git-Url: http://git.madism.org/?p=apps%2Fmadmutt.git;a=blobdiff_plain;f=lib-lib%2Fmacros.h;h=75c734a946ba531ee0d0b05197479c5b9c9a1f93;hp=14eba9627656336e14120d9fa2774a04ea6914e1;hb=b36dc16c428cc2b1371bb99c0581aa014f302791;hpb=7f7a0be369840b290248e5b0302beb447fa1b3cd diff --git a/lib-lib/macros.h b/lib-lib/macros.h index 14eba96..75c734a 100644 --- a/lib-lib/macros.h +++ b/lib-lib/macros.h @@ -1,17 +1,18 @@ /* - * 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 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. + * 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. + * 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 */ @@ -19,6 +20,10 @@ #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! */ @@ -40,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 */