]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
Include <stdint.h> as an alternative to <inttypes.h>.
authorJim Meyering <jim@meyering.net>
Fri, 6 Jun 2003 22:30:28 +0000 (22:30 +0000)
committerJim Meyering <jim@meyering.net>
Fri, 6 Jun 2003 22:30:28 +0000 (22:30 +0000)
lib/strtoimax.c
lib/xstrtol.h

index 0f03ca174b7826ab70ac80634d648433d9a89183..23c8eb66c76f19e41fc0ad428b1f9bc7e0732219 100644 (file)
@@ -1,5 +1,5 @@
 /* Convert string representation of a number into an intmax_t value.
-   Copyright 1999, 2001 Free Software Foundation, Inc.
+   Copyright 1999, 2001, 2002 Free Software Foundation, Inc.
 
    This program is free software; you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
@@ -23,6 +23,8 @@
 
 #if HAVE_INTTYPES_H
 # include <inttypes.h>
+#elif HAVE_STDINT_H
+# include <stdint.h>
 #endif
 
 #if HAVE_STDLIB_H
index 513855f14e5d8a6e429b4f1f5a9238a771b60643..5d6dd8ebe6a6fd8b4cd46d5dccab6c8a6ccca7c3 100644 (file)
@@ -20,6 +20,8 @@
 
 # if HAVE_INTTYPES_H
 #  include <inttypes.h> /* for uintmax_t */
+# elif HAVE_STDINT_H
+#  include <stdint.h>
 # endif
 
 # ifndef PARAMS