Mercurial > hg > octave-shane > gnulib-hg
changeset 11014:622b789a86c4
mktime.m4: remove K&R-style function prototypes
* m4/mktime.m4 (AC_FUNC_MKTIME): Remove K&R-style function prototypes
for the Sun C++ compiler.
author | Albert Chin-A-Young <china@thewrittenword.com> |
---|---|
date | Wed, 14 Jan 2009 12:56:51 -0600 |
parents | 1a96d7fec8d0 |
children | 1b3e52ed017e |
files | ChangeLog m4/mktime.m4 |
diffstat | 2 files changed, 9 insertions(+), 6 deletions(-) [+] |
line wrap: on
line diff
--- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2009-01-15 Albert Chin-A-Young <china@thewrittenword.com> + + mktime.m4: remove K&R-style function prototypes + * m4/mktime.m4 (AC_FUNC_MKTIME): Remove K&R-style function prototypes + for the Sun C++ compiler. + 2009-01-14 Bruno Haible <bruno@clisp.org> * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_WCHAR_H): New macro, defined
--- a/m4/mktime.m4 +++ b/m4/mktime.m4 @@ -68,16 +68,14 @@ } static int -mktime_test1 (now) - time_t now; +mktime_test1 (time_t now) { struct tm *lt; return ! (lt = localtime (&now)) || mktime (lt) == now; } static int -mktime_test (now) - time_t now; +mktime_test (time_t now) { return (mktime_test1 (now) && mktime_test1 ((time_t) (time_t_max - now)) @@ -101,8 +99,7 @@ } static int -bigtime_test (j) - int j; +bigtime_test (int j) { struct tm tm; time_t now;