bug-gnu-utils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

problem with "#define printf libintl_printf" in "libintl.h"


From: Henry Nelson
Subject: problem with "#define printf libintl_printf" in "libintl.h"
Date: Fri, 16 Jun 2006 18:11:31 +0900
User-agent: Mutt/1.5.11

When I compile programs that will link to both libintl and libslang,
warnings occur like:
/usr/local/include/slang.h:899: warning: `libintl_printf' is an unrecognized 
format function type

If I also try to link with libiconv, then a fatal error will occur.

Would it be possible to not redefine printf in "libintl.h"?

Thank you for any help with this problem.

-- 
henry n.

PS.  The lines in slang.h which lead to warnings/errors are:
899
SL_EXTERN void SLang_verror (int, char *, ...) SLATTRIBUTE_PRINTF(2,3);
995
SL_EXTERN void SLang_vmessage (char *, ...) SLATTRIBUTE_PRINTF(1,2);
1002
SL_EXTERN void SLang_exit_error (char *, ...) SLATTRIBUTE_((format (printf, 1, 2
), noreturn));
1686
SL_EXTERN void SLsmg_printf (char *, ...) SLATTRIBUTE_PRINTF(1,2);




reply via email to

[Prev in Thread] Current Thread [Next in Thread]