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)
This commit is contained in:
parent
38d1ac34ff
commit
96e3cfc8bf
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=227475
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user