|
Message-ID: <5d8e23615cafaa53ffe3825157f7a489@exys.org> Date: Mon, 10 Oct 2011 16:03:59 +0200 From: aep <aep@...s.org> To: <musl@...ts.openwall.com> Subject: Re: [PATCH] In C++ wchar_t is a keyword, so don't define it On Mon, 10 Oct 2011 14:23:12 +0200, Szabolcs Nagy wrote: > * Arvid Picciani <aep@...s.org> [2011-10-10 12:33:20 +0200]: >> -#ifdef __WCHAR_TYPE__ >> +#if defined(__WCHAR_TYPE__) && !defined(__cplusplus) >> TYPEDEF __WCHAR_TYPE__ wchar_t; >> #else >> TYPEDEF long wchar_t; > > imho you meant > > #ifndef __cplusplus > #ifdef __WCHAR_TYPE__ > TYPEDEF __WCHAR_TYPE__ wchar_t; > #else > TYPEDEF long wchar_t; > #endif > #endif should work either way. I don't really care :)
Powered by blists - more mailing lists
Confused about mailing lists and their use? Read about mailing lists on Wikipedia and check out these guidelines on proper formatting of your messages.