summaryrefslogtreecommitdiff
path: root/lib/getdelim.c
diff options
context:
space:
mode:
authorSimon Josefsson <simon@josefsson.org>2009-05-20 09:36:35 +0200
committerSimon Josefsson <simon@josefsson.org>2009-05-20 09:36:35 +0200
commit6e5eee287fe932f23aca494fb8153f218c905771 (patch)
treef84903a6d172a111e36de631e17de6ba2bff94cd /lib/getdelim.c
parenta7b3227b5935d203a51bd3bf09c710e35f6bf0cf (diff)
downloadgnulib-6e5eee287fe932f23aca494fb8153f218c905771.tar.gz
getdelim: Use SIZE_MAX from stdint.h.
Diffstat (limited to 'lib/getdelim.c')
-rw-r--r--lib/getdelim.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/lib/getdelim.c b/lib/getdelim.c
index 35cb2d8737..12f2167c91 100644
--- a/lib/getdelim.c
+++ b/lib/getdelim.c
@@ -1,6 +1,6 @@
/* getdelim.c --- Implementation of replacement getdelim function.
- Copyright (C) 1994, 1996, 1997, 1998, 2001, 2003, 2005, 2006, 2007, 2008 Free
- Software Foundation, Inc.
+ Copyright (C) 1994, 1996, 1997, 1998, 2001, 2003, 2005, 2006, 2007,
+ 2008, 2009 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
@@ -24,12 +24,10 @@
#include <stdio.h>
#include <limits.h>
+#include <stdint.h>
#include <stdlib.h>
#include <errno.h>
-#ifndef SIZE_MAX
-# define SIZE_MAX ((size_t) -1)
-#endif
#ifndef SSIZE_MAX
# define SSIZE_MAX ((ssize_t) (SIZE_MAX / 2))
#endif