Follow @Openwall on Twitter for new release announcements and other news
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date: Mon, 10 Oct 2011 14:23:12 +0200
From: Szabolcs Nagy <nsz@...t70.net>
To: musl@...ts.openwall.com
Subject: Re: [PATCH] In C++ wchar_t is a keyword, so don't define it

* 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

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.