From dac2e5bb3990fd05a5027fc01a8f9c0b59895523 Mon Sep 17 00:00:00 2001 From: Michael Shalayeff Date: Fri, 25 Jul 1997 21:05:47 +0000 Subject: #if __STDC__ --> #ifdef __STDC__ --- usr.bin/rpcgen/rpc_hout.c | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'usr.bin/rpcgen') 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"); } } -- cgit v1.2.3