RE: [Exim] Exim 4.21 released

Αρχική Σελίδα
Delete this message
Reply to this message
Συντάκτης: Philip Hazel
Ημερομηνία:  
Προς: Griffiths M (ISeLS)
Υ/ο: 'exim-users@exim.org'
Αντικείμενο: RE: [Exim] Exim 4.21 released
On Thu, 14 Aug 2003, Griffiths M (ISeLS) wrote:

> It looks like "iconv.h" is now included in both exim.h and sieve.c
> that wasn't in version 4.20.


In both cases, the code reads

#if HAVE_ICONV             /* Not all OS have this */
#include <iconv.h>
#endif


The HAVE_ICONV macro is defined in config.h. I have screwed up by
forgetting to include config.h in exim_dbmbuild.c.

However, with HAVE_ICONV not defined, it should be treated as "false",
so that include shouldn't have happend. Which OS are you using? Which
compiler? I've just tried this program

#include <stdio.h>
int main(void)
{
printf("1\n");
#if HAVE_ICONV
printf("yes\n");
#endif
printf("2\n");
return 0;
}

with gcc and with Sun's compiler, and they both exclude the "yes" print
statement.

--
Philip Hazel            University of Cambridge Computing Service,
ph10@???      Cambridge, England. Phone: +44 1223 334714.
Get the Exim 4 book:    http://www.uit.co.uk/exim-book