Commit d88120f6 d88120f6d8721f2748bc4a0eb2bc9fe63db310c7 by Sam Roberts

fixed warning about included regex.h redefineing RE_DUP_MAX from limits.h

1 parent f2901a21
...@@ -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 {
......