Date: Sat, 12 Nov 2011 20:25:11 +0000 (UTC) From: David Chisnall <theraven@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r227475 - head/sys/sys Message-ID: <201111122025.pACKPBJm060039@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: theraven Date: Sat Nov 12 20:25:11 2011 New Revision: 227475 URL: http://svn.freebsd.org/changeset/base/227475 Log: Expose all of the C99 limits.h stuff when we're in C++11 mode (or some approximation thereof). C++11 finally adds long long to C++. Now even C++ programmers are allowed to use 64-bit integers! Approved by: dim (mentor) Modified: head/sys/sys/cdefs.h Modified: head/sys/sys/cdefs.h ============================================================================== --- head/sys/sys/cdefs.h Sat Nov 12 20:16:06 2011 (r227474) +++ head/sys/sys/cdefs.h Sat Nov 12 20:25:11 2011 (r227475) @@ -253,6 +253,17 @@ #define __LONG_LONG_SUPPORTED #endif +/* C++11 exposes a load of C99 stuff */ +#if __cplusplus >= 201103L +# define __LONG_LONG_SUPPORTED +# ifndef __STDC_LIMIT_MACROS +# define __STDC_LIMIT_MACROS +# endif +# ifndef __STDC_CONSTANT_MACROS +# define __STDC_CONSTANT_MACROS +# endif +#endif + /* * GCC 2.95 provides `__restrict' as an extension to C90 to support the * C99-specific `restrict' type qualifier. We happen to use `__restrict' as
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201111122025.pACKPBJm060039>