[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [MiNT] wide-char and g++



Jeffrey Armstrong, 17.04.2013 15:16:53:

On Tue, 16 Apr 2013, Alan Hourihane wrote:

 On 04/16/13 21:13, Helmut Karlowski wrote:
What's that __restrict for? cygwin has it also.

Consistency, but read about __restrict here....


I just peeked and saw the "__restrict"'s added to wchar.h. Are you sure they should be included? "__restrict" breaks compiling mintlib with gcc 2.95.

As a simple solution something like

# if __GNUC__ <= 2
# define __restricted
# endif

could be made. You'd lose c++, but that would not work anyway.

--
Helmut Karlowski