diff options
author | Ulrich Drepper <drepper@redhat.com> | 2002-08-08 04:44:47 +0000 |
---|---|---|
committer | Ulrich Drepper <drepper@redhat.com> | 2002-08-08 04:44:47 +0000 |
commit | ec6170f59b44bb0e9c40c263cba3d88f80db884c (patch) | |
tree | 3683a97a237e02b97ecdc9514aaf26f460715b06 /stdlib/isomac.c | |
parent | 7d0b1164e664e0f7788aa16c7b2b74311a1495a8 (diff) | |
download | glibc-ec6170f59b44bb0e9c40c263cba3d88f80db884c.tar glibc-ec6170f59b44bb0e9c40c263cba3d88f80db884c.tar.gz glibc-ec6170f59b44bb0e9c40c263cba3d88f80db884c.tar.bz2 glibc-ec6170f59b44bb0e9c40c263cba3d88f80db884c.zip |
(get_null_defines): Treat NOT_IN_libc special. It is known to be defined.
Diffstat (limited to 'stdlib/isomac.c')
-rw-r--r-- | stdlib/isomac.c | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/stdlib/isomac.c b/stdlib/isomac.c index 0229b3fb4f..c0b9ad1db2 100644 --- a/stdlib/isomac.c +++ b/stdlib/isomac.c @@ -303,14 +303,18 @@ get_null_defines (void) start = &line[8]; for (end = start + 1; !isspace (*end) && *end != '\0'; ++end) ; - result[result_len++] = xstrndup (start, end - start); + result[result_len] = xstrndup (start, end - start); - if (first) + if (strcmp (result[result_len], "NOT_IN_libc") != 0) { - fputs ("The following identifiers will be ignored since the compiler defines them\nby default:\n", stdout); - first = 0; + if (first) + { + fputs ("The following identifiers will be ignored since the compiler defines them\nby default:\n", stdout); + first = 0; + } + puts (result[result_len]); } - puts (result[result_len - 1]); + ++result_len; } if (result_len == result_max) { |