Yuri Dario wrote:
Hi Stephan,
In C++, wchar_t is an integral type distinct from all other integral
types, it is not a typedef.
ah, that explain all.
The net effect is thus that
sal_Unicode is a typedef for unsigned short on all platforms except your
OS2 version built with GCC.
ok.
BTW why doesn't also win32 rely on sal_uInt16?
I _think_ it had something to do with wchar_t being understood (even in
its typedef form) as a character type by MSDev, so that characters
instead of numbers would be printed in the debugger. However, I might
be totally of track here...
I would assume everything works ok if you
remove "|| defined(SAL_OS2)" from sal/types.h.
I can do this, but does OpenOffice make use of compiler libc functions
for unicode?
I'm asking, because choosing unsigned short for sal_unicode will break
all (libc) functions prototypes.
I do not think that OOo uses any functions from libc that use wchar_t.
If it does (for OS2-specific code maybe), that would most probably be in
module sal.
-Stephan
TIA,
Bye,
Yuri Dario
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]