summaryrefslogtreecommitdiff
path: root/usr.bin/rpcgen
diff options
context:
space:
mode:
authorMichael Shalayeff <mickey@cvs.openbsd.org>1997-07-25 21:05:47 +0000
committerMichael Shalayeff <mickey@cvs.openbsd.org>1997-07-25 21:05:47 +0000
commitdac2e5bb3990fd05a5027fc01a8f9c0b59895523 (patch)
tree32ab5e771b0ce146934c9462a6bbb409e4fa4390 /usr.bin/rpcgen
parentec5d2ebad5e3102a055932148dd103272602b53b (diff)
#if __STDC__ --> #ifdef __STDC__
Diffstat (limited to 'usr.bin/rpcgen')
-rw-r--r--usr.bin/rpcgen/rpc_hout.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/usr.bin/rpcgen/rpc_hout.c b/usr.bin/rpcgen/rpc_hout.c
index 1e6b8647606..fb48cb1aca1 100644
--- a/usr.bin/rpcgen/rpc_hout.c
+++ b/usr.bin/rpcgen/rpc_hout.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: rpc_hout.c,v 1.3 1996/09/15 08:52:41 tholo Exp $ */
+/* $OpenBSD: rpc_hout.c,v 1.4 1997/07/25 21:05:39 mickey Exp $ */
/* $NetBSD: rpc_hout.c,v 1.4 1995/06/11 21:49:55 pk Exp $ */
/*
* Sun RPC is a product of Sun Microsystems, Inc. and is provided for
@@ -116,17 +116,17 @@ char* name;
int pointerp;
{
- f_print(fout,"#ifdef __cplusplus \n");
+ f_print(fout,"#ifdef __cplusplus\n");
f_print(fout, "extern \"C\" bool_t xdr_%s(XDR *, %s%s);\n",
name,
name, pointerp ? ("*") : "");
- f_print(fout,"#elif __STDC__ \n");
+ f_print(fout,"#elif defined(__STDC__)\n");
f_print(fout, "extern bool_t xdr_%s(XDR *, %s%s);\n",
name,
name, pointerp ? ("*") : "");
- f_print(fout,"#else /* Old Style C */ \n");
+ f_print(fout,"#else /* Old Style C */\n");
f_print(fout, "bool_t xdr_%s();\n", name);
- f_print(fout,"#endif /* Old Style C */ \n\n");
+ f_print(fout,"#endif /* Old Style C */\n\n");
}
@@ -285,10 +285,10 @@ pprogramdef(def)
f_print(fout,"\n#ifdef __cplusplus\n");
ext="extern \"C\" ";
}else if ( i== 1){
- f_print(fout,"\n#elif __STDC__\n");
+ f_print(fout,"\n#elif defined(__STDC__)\n");
ext="extern " ;
}else{
- f_print(fout,"\n#else /* Old Style C */ \n");
+ f_print(fout,"\n#else /* Old Style C */\n");
ext="extern ";
}
@@ -305,7 +305,7 @@ pprogramdef(def)
}
}
- f_print(fout,"#endif /* Old Style C */ \n");
+ f_print(fout,"#endif /* Old Style C */\n");
}
}