updating standard headers to meet c++11 standard

2014-05-20 Thread Shane Ambler
When including stdint.h in c++ we can #define __STDC_LIMIT_MACROS so that we get macros like INT32_MAX defined. Also related is __STDC_CONSTANT_MACROS I have recently found that the need for these has been removed within the c++11 standard. This year old bug report was to update glibc to this en

Re: updating standard headers to meet c++11 standard

2014-05-20 Thread David Chisnall
Hi, I thought I'd already fixed this a year or so ago. Looking at my system, I see this in cdefs.h: /* C++11 exposes a load of C99 stuff */ #if defined(__cplusplus) && __cplusplus >= 201103L #define __LONG_LONG_SUPPORTED #ifndef __STDC_LIMIT_MACROS #define __STDC_LIMIT_MACROS #endif #ifndef __S

Re: updating standard headers to meet c++11 standard

2014-05-20 Thread Shane Ambler
On 20/05/2014 21:26, David Chisnall wrote: > Hi, > > I thought I'd already fixed this a year or so ago. Looking at my system, I > see this in cdefs.h: > > /* C++11 exposes a load of C99 stuff */ > #if defined(__cplusplus) && __cplusplus >= 201103L > #define __LONG_LONG_SUPPORTED > #ifndef __STD