Complete.Org: Mailing Lists: Archives: freeciv-dev: January 2005:
[Freeciv-Dev] (PR#11931) fc__attribute bug when compiling with libintl
Home

[Freeciv-Dev] (PR#11931) fc__attribute bug when compiling with libintl

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
Subject: [Freeciv-Dev] (PR#11931) fc__attribute bug when compiling with libintl
From: "Jason Short" <jdorje@xxxxxxxxxxxxxxxxxxxxx>
Date: Sat, 15 Jan 2005 01:53:40 -0800
Reply-to: bugs@xxxxxxxxxxx

<URL: http://bugs.freeciv.org/Ticket/Display.html?id=11931 >

When compiling with libintl (GNU's gettext library, not to be confused 
with the gettext library included in glibc) I run into some unusual 
problems.

log.h:61: warning: `libintl_printf' is an unrecognized format function type
In file included from fciconv.c:39:

The problem is that libintl.h contains (I have no idea why)

#undef fprintf
#define fprintf libintl_fprintf

while log.h (and many other places) use

void real_freelog(int level, const char *message, ...)
                   fc__attribute((format (printf, 2, 3)));

the "printf" inside the fc__attribute is changed to a libintl_fprintf, 
which makes the format attribute invalid.

-jason





[Prev in Thread] Current Thread [Next in Thread]
  • [Freeciv-Dev] (PR#11931) fc__attribute bug when compiling with libintl, Jason Short <=