summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>2000-12-02 20:45:30 +0000
committerJim Meyering <jim@meyering.net>2000-12-02 20:45:30 +0000
commit501ebc1cba521057e755bdc2c609f8818724a4d4 (patch)
treedc86419f69c7fb0508f41f9c0ec335124e3051c6 /lib
parent77182607c011ebe709586ffcc5eb6de72e023d6c (diff)
downloadcoreutils-501ebc1cba521057e755bdc2c609f8818724a4d4.tar.xz
Make idempotent, to avoid some obscure warnings.
Diffstat (limited to 'lib')
-rw-r--r--lib/closeout.h17
1 files changed, 11 insertions, 6 deletions
diff --git a/lib/closeout.h b/lib/closeout.h
index fb8918b5f..80f24e45f 100644
--- a/lib/closeout.h
+++ b/lib/closeout.h
@@ -1,12 +1,17 @@
-#ifndef PARAMS
-# if defined PROTOTYPES || (defined __STDC__ && __STDC__)
-# define PARAMS(Args) Args
-# else
-# define PARAMS(Args) ()
+#ifndef CLOSEOUT_H
+# define CLOSEOUT_H 1
+
+# ifndef PARAMS
+# if defined PROTOTYPES || (defined __STDC__ && __STDC__)
+# define PARAMS(Args) Args
+# else
+# define PARAMS(Args) ()
+# endif
# endif
-#endif
void close_stdout_set_status PARAMS ((int status));
void close_stdout_set_file_name PARAMS ((const char *file));
void close_stdout PARAMS ((void));
void close_stdout_status PARAMS ((int status));
+
+#endif