# HG changeset patch # User Albert Chin-A-Young # Date 1231959411 21600 # Node ID 622b789a86c410aee08df90602c87db15c12b58f # Parent 1a96d7fec8d0b40b0e96173bfc3591320d1490b0 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. diff --git a/ChangeLog b/ChangeLog --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2009-01-15 Albert Chin-A-Young + + 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 * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_WCHAR_H): New macro, defined diff --git a/m4/mktime.m4 b/m4/mktime.m4 --- 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;