Abdelrazak Younes wrote:
Abdelrazak Younes wrote:
Lars Gullik Bjønnes wrote:
Abdelrazak Younes <[EMAIL PROTECTED]> writes:

| I would personally simply
| go for an #ifdef in uicode.C for now:
| | /* Define as const if the declaration of iconv() needs const. */
| #ifdef WIN32
|   #define ICONV_CONST const
| #else
|   #define ICONV_CONST
| #endif
| | Then, that could be changed when/if someone has the autoconf and scons
| knowledge to do the test on the iconv prototype.

autoconf/automake already create this macros/define, so it should be
put in the config.h created by scons.

Good, then I'll try to do the change for scons.

It seems to be there already:
                (conf.CheckIconvConst(),
                    'ICONV_CONST',
'Define as const if the declaration of iconv() needs const.',
                    '#define ICONV_CONST',
                    '#define ICONV_CONST const',
                ),

Bo did a good job with scons :-)

Bo, I see that the test is correctly done:

Check if the declaration of iconv needs const... (cached) yes

But I don't see the macro in "common/config.h", could you have a look please?

Abdel.

Reply via email to