Share

GNU Gettext for Delphi, C++ and Kylix

Tracker: Bugs

5 The LOCALE_* constants break C++Builder support - ID: 1997148
Last Update: Comment added ( audacia )

The dxgettext revision referenced here:
http://compaspascal.blogspot.com/2008/05/gnu-gettext-for-delphi-2008-availa
ble.html
defines the following constants:
// gnugettext.pas, l. 427ff
const
LOCALE_SISO639LANGNAME = $59; // Used by Lazarus software development
tool
LOCALE_SISO3166CTRYNAME = $5A; // Used by Lazarus software development
tool

Those constants are defined as macros in the Windows SDK header winnls.h,
l. 577f:
#define LOCALE_SISO639LANGNAME 0x00000059 // ISO abbreviated
language name
#define LOCALE_SISO3166CTRYNAME 0x0000005A // ISO abbreviated
country name

Therefore, the existence of the two constants in gnugettext.pas causes
compilation errors in C++Builder.

Resolution:

Add these two lines after the definitions:

{$NODEFINE LOCALE_SISO639LANGNAME} // already defined in winnls.h
{$NODEFINE LOCALE_SISO3166CTRYNAME} // dito


audacia ( audacia ) - 2008-06-18 19:02

5

Open

None

Nobody/Anonymous

None

None

Public


Comment ( 1 )




Date: 2008-06-18 19:08
Sender: audacia


Sorry, I did not see the other bug report on the same issue.


Log in to comment.

Attached File

No Files Currently Attached

Change

No changes have been made to this artifact.