summaryrefslogtreecommitdiff
path: root/footobar.c
diff options
context:
space:
mode:
authortim <tim>1997-07-01 19:57:45 +0000
committerToby Goodwin <toby@paccrat.org>2015-05-16 21:23:01 +0100
commitdf8f2d58845819d1973779918d9c97018edc1170 (patch)
tree252d72dcb3bc24c495dc8de85298cbecf51dc24c /footobar.c
parent8a03ed3fc54e728f7ccd2fef40b7215e1d072054 (diff)
autoconf
Diffstat (limited to 'footobar.c')
-rw-r--r--footobar.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/footobar.c b/footobar.c
index 2440f5a..27955ba 100644
--- a/footobar.c
+++ b/footobar.c
@@ -7,7 +7,7 @@
/* protect an exported name from brain-dead shells */
-#ifdef PROTECT_ENV
+#if PROTECT_ENV
static bool Fconv(Format *f, int ignore) {
unsigned const char *s = va_arg(f->args, unsigned const char *);
int c;
@@ -192,7 +192,7 @@ extern char *get_name(char *s) {
case '=':
*r++ = '\0';
return result;
-#ifdef PROTECT_ENV
+#if PROTECT_ENV
case '_':
if (*s == '_') {
static const char hexchar[] = "0123456789abcdef";
@@ -329,7 +329,7 @@ void initprint(void) {
fmtinstall('S', Sconv);
fmtinstall('T', Tconv);
fmtinstall('D', Dconv);
-#ifdef PROTECT_ENV
+#if PROTECT_ENV
fmtinstall('F', Fconv);
#else
fmtinstall('F', fmtinstall('s', NULL));