Umesh Chandak wrote:
Hi All,
I am using the macro X which has definition like
#define X(str) ((const XMLCh *) L##str)
But In freeBSD 4.9 it is not working which has gcc version 4.95.4 . GCC
4.95.9 doesn't have compiler option -fshort-wchar.
Can anybody tell me how can I do the same functionality in freeBSD 4.9
or in gcc 4.95.4.
I've never heard of a version of GCC called 4.95.9. Are you sure that's
the correct version?
There is no way to implement the X macro if the compiler doesn't support
UTF-16 as the encoding for wide character strings. However, there are some
samples that implement a class that does something similar through local
code page transcoding. Search the samples for "StrX" to see an example.
Dave