[Freeciv-Dev] (PR#12932) windows printf doesn't allow reordering argumen
[Top] [All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
<URL: http://bugs.freeciv.org/Ticket/Display.html?id=12932 >
> [jdorje - Mi 01. Feb 2006, 09:19:07]:
>
> Adding a new .c file should not be necessary. Libutf8 should do this
> for us. For instance if that .c file were simply included in libutf8,
> the job would be done!
>
> It looks to me like utf8/stdio.h basically does this. How about this
> patch - does it work?
>
> -jason
>
I get a compile error:
gcc -c -DLOCALEDIR=\"./share/locale\"
-DLOCALE_ALIAS_PATH=\"./share/locale\" -DLIBDIR=\"./lib\"
-DHAVE_CONFIG_H -I.. -I. -I../intl -g -O2 -Wall -Wpointer-arith
-Wcast-align -Wmissing-prototypes -Wmissing-declarations loadmsgcat.c
In file included from loadmsgcat.c:29:
c:/programme/gnuwin32/mingw/bin/../lib/gcc/mingw32/3.4.2/../../../../include/ctype.h:177:
error: conflicting types for 'iswascii'
c:/programme/gnuwin32/mingw/bin/../lib/gcc/mingw32/3.4.2/../../../../include/wctype.h:119:
error: previous definition of 'iswascii' was here
c:/programme/gnuwin32/mingw/bin/../lib/gcc/mingw32/3.4.2/../../../../include/ctype.h:177:
error: conflicting types for 'iswascii'
c:/programme/gnuwin32/mingw/bin/../lib/gcc/mingw32/3.4.2/../../../../include/wctype.h:119:
error: previous definition of 'iswascii' was here
c:/programme/gnuwin32/mingw/bin/../lib/gcc/mingw32/3.4.2/../../../../include/ctype.h:180:
error: conflicting types for 'is_wctype'
c:/programme/gnuwin32/mingw/bin/../lib/gcc/mingw32/3.4.2/../../../../include/wctype.h:72:
error: previous declaration of 'is_wctype' was here
c:/programme/gnuwin32/mingw/bin/../lib/gcc/mingw32/3.4.2/../../../../include/ctype.h:180:
error: conflicting types for 'is_wctype'
c:/programme/gnuwin32/mingw/bin/../lib/gcc/mingw32/3.4.2/../../../../include/wctype.h:72:
error: previous declaration of 'is_wctype' was here
make[2]: *** [loadmsgcat.o] Error 1
make[2]: Leaving directory
`/c/tmp/projekte/civ/src/mingw/freeciv-2.0.7/intl'
in ctype.h:
-----------
_CRTIMP int __cdecl iswascii(wint_t);
in wctype.h:
------------
#if !(defined (__NO_INLINE__) || defined(__NO_CTYPE_INLINES) \
|| defined(__WCTYPE_INLINES_DEFINED))
#define __WCTYPE_INLINES_DEFINED
...
__CRT_INLINE int __cdecl iswascii(wint_t wc) {return ((wc & ~0x7F) ==0);}
...
#endif /* !(defined(__NO_CTYPE_INLINES) ||
defined(__WCTYPE_INLINES_DEFINED)) */
|
|