# HG changeset patch # User Paul Eggert # Date 1128012683 0 # Node ID e4e3de21fe2455ce7e0cce5d02dc64cf53cb0899 # Parent 41c42e1f6734964d23fb08df8c55e9d0a2680db4 * xtime.h (XTIME_PRECISION): Now of type int, not long long int, so that the code works even with ancient cpp. Portability problem with GCC 2.7.2.1 reported by Thomas M.Ott. diff --git a/lib/ChangeLog b/lib/ChangeLog --- a/lib/ChangeLog +++ b/lib/ChangeLog @@ -1,3 +1,9 @@ +2005-09-29 Paul Eggert + + * xtime.h (XTIME_PRECISION): Now of type int, not long long int, + so that the code works even with ancient cpp. Portability problem + with GCC 2.7.2.1 reported by Thomas M.Ott. + 2005-09-27 Jim Meyering * getcwd.c: Change #ifdefHAVE_CONFIG_H to #ifdef HAVE_CONFIG_H. diff --git a/lib/xtime.h b/lib/xtime.h --- a/lib/xtime.h +++ b/lib/xtime.h @@ -27,14 +27,14 @@ seconds. */ # if HAVE_LONG_LONG typedef long long int xtime_t; -# define XTIME_PRECISION 1000000000LL +# define XTIME_PRECISION 1000000000 # else # include typedef long int xtime_t; # if LONG_MAX >> 31 >> 31 == 0 -# define XTIME_PRECISION 1L +# define XTIME_PRECISION 1 # else -# define XTIME_PRECISION 1000000000L +# define XTIME_PRECISION 1000000000 # endif # endif