fixed warning about included regex.h redefineing RE_DUP_MAX from limits.h
Showing
1 changed file
with
11 additions
and
2 deletions
... | @@ -16,12 +16,21 @@ | ... | @@ -16,12 +16,21 @@ |
16 | Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */ | 16 | Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */ |
17 | 17 | ||
18 | %{ | 18 | %{ |
19 | #include "mail.h" | ||
20 | |||
19 | #include <stdio.h> | 21 | #include <stdio.h> |
20 | #include <stdlib.h> | 22 | #include <stdlib.h> |
21 | #include <regex.h> | ||
22 | 23 | ||
23 | #include <xalloc.h> | 24 | #include <xalloc.h> |
24 | #include "mail.h" | 25 | |
26 | /* Defined in <limits.h> on some systems, but redefined in <regex.h> | ||
27 | if we are using GNU's regex. So, undef it to avoid duplicate definition | ||
28 | warnings. */ | ||
29 | |||
30 | #ifdef RE_DUP_MAX | ||
31 | # undef RE_DUP_MAX | ||
32 | #endif | ||
33 | #include <regex.h> | ||
25 | 34 | ||
26 | struct header_data | 35 | struct header_data |
27 | { | 36 | { | ... | ... |
-
Please register or sign in to post a comment