X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;f=lib%2Fposixtm.h;h=d2c01c9b6b440282643e6c8e36c2e3a6aa961a76;hb=226d63000a25c5f20ceecd610457b32d867909c7;hp=f2bca79439a6681b67a92b912327f21652e6e69e;hpb=3fabedfac77682d0ab587e05060947aa3546b23c;p=gnulib.git diff --git a/lib/posixtm.h b/lib/posixtm.h index f2bca7943..d2c01c9b6 100644 --- a/lib/posixtm.h +++ b/lib/posixtm.h @@ -1,11 +1,24 @@ +#ifndef POSIXTM_H_ +# define POSIXTM_H_ + /* POSIX Date Syntax flags. */ -#define PDS_LEADING_YEAR 1 -#define PDS_TRAILING_YEAR 2 -#define PDS_CENTURY 4 -#define PDS_SECONDS 8 +# define PDS_LEADING_YEAR 1 +# define PDS_TRAILING_YEAR 2 +# 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