In mingw port case, so many win32 specific modules are using win32 api directly and they use wchar_t. And in some external modules are also using wchar_t for win32.
It should be discussed more but currently I choose to discriminate sal_uInt16 and sal_Unicode. In message "Re: [porting-dev] sal_Unicode: wchar_t or uInt16?", Stephan Bergmann wrote... >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] > ---- Takashi Ono(HK Freak) mailto:[EMAIL PROTECTED] or [EMAIL PROTECTED] (Personal Address, checked every morning/evening and holidays) mailto:[EMAIL PROTECTED] (Address for business, checked every working days) http://www.hkfreak.net --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
