changeset 1496:f58fdf937295

(PARAMS): Define and use. From Kaveh Ghazi.
author Jim Meyering <jim@meyering.net>
date Thu, 17 Sep 1998 13:48:20 +0000
parents 0e65c6483e71
children df991a2327b5
files lib/posixtm.h
diffstat 1 files changed, 10 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/lib/posixtm.h
+++ b/lib/posixtm.h
@@ -7,10 +7,18 @@
 # define PDS_CENTURY 4
 # define PDS_SECONDS 8
 
+# ifndef PARAMS
+#  if defined PROTOTYPES || (defined __STDC__ && __STDC__)
+#   define PARAMS(Args) Args
+#  else
+#   define PARAMS(Args) ()
+#  endif
+# endif
+
 time_t
-posixtime (const char *s, unsigned int syntax_bits);
+posixtime PARAMS ((const char *s, unsigned int syntax_bits));
 
 struct tm *
-posixtm (const char *s, unsigned int syntax_bits);
+posixtm PARAMS ((const char *s, unsigned int syntax_bits));
 
 #endif