cproc

Unnamed repository; edit this file 'description' to name the repository.
git clone git://git.nihaljere.xyz/cproc
Log | Files | Refs | Submodules | README | LICENSE

commit 2deac8fa0c95d5c07b344e1ee966ea818c0b578b
parent 2e803ca5fd925c789b508e1463ea4417f2e1a2f4
Author: Michael Forney <mforney@mforney.org>
Date:   Sun, 24 Feb 2019 14:42:04 -0800

Define __GNUC__=4 and __STRICT_ANSI__ by default

We implement some GNU extensions that are used to implement certain libc
features, like INF, NAN, alloca, and offsetof.

Diffstat:
Mconfig.def.h | 7+++++--
1 file changed, 5 insertions(+), 2 deletions(-)

diff --git a/config.def.h b/config.def.h @@ -14,8 +14,11 @@ static char *endfiles[] = { static char *preprocesscmd[] = { "cpp", "-P", - /* prevent libc from using GNU C extensions */ - "-U", "__GNUC__", + /* specify the GNU C extensions we support */ + "-U", "__GNUC__", "-D", "__GNUC__=4", + + /* prevent glibc from using statement expressions for assert */ + "-D", "__STRICT_ANSI__", /* required for glibc headers */ "-D", "__restrict=restrict",