(PARAMS): Define and use.
authorJim Meyering <jim@meyering.net>
Thu, 17 Sep 1998 13:48:20 +0000 (13:48 +0000)
committerJim Meyering <jim@meyering.net>
Thu, 17 Sep 1998 13:48:20 +0000 (13:48 +0000)
From Kaveh Ghazi.

lib/posixtm.h

index 36ffc01..d2c01c9 100644 (file)
@@ -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