Errors when compiling on C++ Builder
Brought to you by:
dybdahl
I am using gnugettext.pas from revision 132.
I am using C++ Builder XE6.
I get the following errors when including gnugettext.hpp:
[bcc64 Error] GnuGetText.hpp(353): expected unqualified-id
[bcc64 Error] GnuGetText.hpp(354): expected unqualified-id
The reason is that LOCALE_SISO639LANGNAME and LOCALE_SISO3166CTRYNAME defined as const in the interface section of gnugettext.pas are already defined in winnls.h.
The problem can be solved by adding this to gnugettext.pas:
{$EXTERNALSYM LOCALE_SISO639LANGNAME}
{$EXTERNALSYM LOCALE_SISO3166CTRYNAME}
propsed fix applied in revision #134
(unfortunately I can't close this ticket, I only have write access to the sources but no admin rights to the project)