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

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

compilation of gettext 0.16.1 fails on MinGW because of winnt.h


From: Vincent Torri
Subject: compilation of gettext 0.16.1 fails on MinGW because of winnt.h
Date: Mon, 7 May 2007 08:12:43 +0200 (CEST)


Hello,

When using MinGW, the compilation of gettext 0.16.1 fails in gettext-runtime/intl :

D:/msys/1.0/home/vincent/src/gettext-0.16.1/gettext-runtime/intl/localename.c: In function `_nl_locale_name_default': D:/msys/1.0/home/vincent/src/gettext-0.16.1/gettext-runtime/intl/localename.c:1145: error: duplicate case value D:/msys/1.0/home/vincent/src/gettext-0.16.1/gettext-runtime/intl/localename.c:1144: error: previously used here D:/msys/1.0/home/vincent/src/gettext-0.16.1/gettext-runtime/intl/localename.c:1359: error: duplicate case value D:/msys/1.0/home/vincent/src/gettext-0.16.1/gettext-runtime/intl/localename.c:1358: error: previously used here D:/msys/1.0/home/vincent/src/gettext-0.16.1/gettext-runtime/intl/localename.c:1367: error: duplicate case value D:/msys/1.0/home/vincent/src/gettext-0.16.1/gettext-runtime/intl/localename.c:1366: error: previously used here

The problem comes from winnt.h, which also defines (with wrong values ?) some sublanguage macros with different values than localename.c.

for example, in winnt.h:

#define SUBLANG_BENGALI_INDIA   0x01

and in localename.c:

# ifndef SUBLANG_BENGALI_INDIA
# define SUBLANG_BENGALI_INDIA 0x00
# endif
# ifndef SUBLANG_BENGALI_BANGLADESH
# define SUBLANG_BENGALI_BANGLADESH 0x01
# endif

What is the best way to fix that problem ? Modifying winnt.h or localename.c ?

thank you

Vincent Torri




reply via email to

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