Define __LONG_LONG_SUPPORTED if the compiler claims to support C99.
Don't set __LONG_LONG_SUPPORTED for gcc-1. I didn't check exactly when gcc started to support long long, but it was in the version of gcc in FreeBSD-1.0 (gcc-2.4.5). Other C99 features should be ifdefed similarly, but the ifdefs for old versions of gcc will be more complicated since the features weren't in all versions of gcc-2.
This commit is contained in:
parent
1b861caae0
commit
8556ba2b73
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=103345
@ -133,8 +133,7 @@
|
||||
#define __func__ NULL
|
||||
#endif
|
||||
|
||||
/* XXX: should use `#if __STDC_VERSION__ >= 199901'. */
|
||||
#if defined(__GNUC__) && !defined(__STRICT_ANSI__)
|
||||
#if __GNUC__ >= 2 && !defined(__STRICT_ANSI__) || __STDC_VERSION__ >= 199901
|
||||
#define __LONG_LONG_SUPPORTED
|
||||
#endif
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user