summaryrefslogtreecommitdiffstats
path: root/bin/sh/parser.c
diff options
context:
space:
mode:
authorrse <rse@FreeBSD.org>2009-06-01 11:02:09 +0000
committerrse <rse@FreeBSD.org>2009-06-01 11:02:09 +0000
commit336f1ea816d3c23dd1a9332ddb6f774a92a85a03 (patch)
tree6c336b7980f5958ff09e19a118953765b1dbfe5e /bin/sh/parser.c
parent88b5665aec3867f4281c38a6100590462cc8fa75 (diff)
downloadFreeBSD-src-336f1ea816d3c23dd1a9332ddb6f774a92a85a03.zip
FreeBSD-src-336f1ea816d3c23dd1a9332ddb6f774a92a85a03.tar.gz
correctly test for __GNUC__ macro (non-GCC compilers do not have it defined at all)
Diffstat (limited to 'bin/sh/parser.c')
-rw-r--r--bin/sh/parser.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/bin/sh/parser.c b/bin/sh/parser.c
index eb7501e..d17dc1a 100644
--- a/bin/sh/parser.c
+++ b/bin/sh/parser.c
@@ -898,7 +898,7 @@ readtoken1(int firstc, char const *syntax, char *eofmark, int striptabs)
int oldstyle;
char const *prevsyntax; /* syntax before arithmetic */
int synentry;
-#if __GNUC__
+#ifdef __GNUC__
/* Avoid longjmp clobbering */
(void) &out;
(void) &quotef;
@@ -1323,7 +1323,7 @@ parsebackq: {
struct jmploc *volatile savehandler;
int savelen;
int saveprompt;
-#if __GNUC__
+#ifdef __GNUC__
/* Avoid longjmp clobbering */
(void) &saveprompt;
#endif
OpenPOWER on IntegriCloud