Re: commctrl.h: Add WC_STATIC

2005-07-12 Thread Mike McCormack
Felix Nawothnig wrote: This could be fixed by adding a _ prefix. Adding another prefix fixes nothing. The original Windows SDK headers don't export a symbol, and we do. It's simply good practice to try and be as close as possible to the original SDK. Mike

Re: commctrl.h: Add WC_STATIC

2005-07-12 Thread Felix Nawothnig
Mike McCormack wrote: I'm curious, what is the reason for the special case handling for MSVC and GCC when we have to do the portable way anyway? I can see two reasons: * The portable way adds a (non-standard) symbol. This could be fixed by adding a _ prefix. * The static string declaration m

Re: commctrl.h: Add WC_STATIC

2005-07-12 Thread Mike McCormack
Felix Nawothnig wrote: +#define WC_STATICA"Static" +#if defined(__GNUC__) +# define WC_STATICW (const WCHAR []){ 'S','t','a', 't','i','c',0 } +#elif defined(_MSC_VER) +# define WC_STATICW L"Static" +#else +static const WCHAR WC_STATICW[] = { 'S','t','a','t','i','c',0 }; +#endif +#define WC_

Re: commctrl.h: Add WC_STATIC

2005-07-12 Thread Felix Nawothnig
Dmitry Timoshkov wrote: +#define WC_STATICA "Static" +#if defined(__GNUC__) +# define WC_STATICW (const WCHAR []){ 'S','t','a', 't','i','c',0 } +#elif defined(_MSC_VER) +# define WC_STATICW L"Static" +#else +static const WCHAR WC_STATICW[] = { 'S','t','a','t','i','c',0 }; +#endif +#define WC_STAT

Re: commctrl.h: Add WC_STATIC

2005-07-12 Thread Dmitry Timoshkov
"Felix Nawothnig" <[EMAIL PROTECTED]> wrote: Frank Richter wrote: +#define WC_STATICA "Static" +#if defined(__GNUC__) +# define WC_STATICW (const WCHAR []){ 'S','t','a', 't','i','c',0 } +#elif defined(_MSC_VER) +# define WC_STATICW L"Static" +#else +static const WCHAR WC_STATICW[] = { 'S','t','

Re: commctrl.h: Add WC_STATIC

2005-07-12 Thread Felix Nawothnig
Frank Richter wrote: +#define WC_STATICA "Static" +#if defined(__GNUC__) +# define WC_STATICW (const WCHAR []){ 'S','t','a', 't','i','c',0 } +#elif defined(_MSC_VER) +# define WC_STATICW L"Static" +#else +static const WCHAR WC_STATICW[] = { 'S','t','a','t','i','c',0 }; +#endif +#define WC_STA