]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
(XTIME_PRECISION): Now of type int, not long long int,
authorPaul Eggert <eggert@cs.ucla.edu>
Thu, 29 Sep 2005 16:51:40 +0000 (16:51 +0000)
committerPaul Eggert <eggert@cs.ucla.edu>
Thu, 29 Sep 2005 16:51:40 +0000 (16:51 +0000)
so that the code works even with ancient cpp.  Portability problem
with GCC 2.7.2.1 reported by Thomas M.Ott.

lib/xtime.h

index 1d5f70b0d89b7cd8355ca863ca9373430b5179a9..3c7f620dbe964a15e2d3b5e6f576b323ab1bf7dc 100644 (file)
    seconds.  */
 # if HAVE_LONG_LONG
 typedef long long int xtime_t;
-#  define XTIME_PRECISION 1000000000LL
+#  define XTIME_PRECISION 1000000000
 # else
 #  include <limits.h>
 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