[Bug c/71013] [7 Regression] c-common.c:12810:37: error: 'LLONG_MAX' was not declared in this scope
danglin at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Wed May 11 01:28:00 GMT 2016
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71013
--- Comment #5 from John David Anglin <danglin at gcc dot gnu.org> ---
It seems on gnu systems, _GNU_SOURCE is defined in CPLUSPLUS_CPP_SPEC
irrespective of -std=gnu++98. This is in gnu-user.h:
/* The GNU C++ standard library requires that these macros be defined. */
#undef CPLUSPLUS_CPP_SPEC
#define CPLUSPLUS_CPP_SPEC "-D_GNU_SOURCE %(cpp)"
As a result, all C features through to C11 are enabled for c++ on at
least Debian unstable.
Is this correct? I could do something similar for hpux so the macros
get defined.
More information about the Gcc-bugs
mailing list