aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2001-12-14 18:06:03 +0000
committerUlrich Drepper <drepper@redhat.com>2001-12-14 18:06:03 +0000
commit35d306307ce3c98faf0377c0f55c95da50311ae6 (patch)
treea950357dfadc7648d05858328c1484355e75bb72 /crypt/md5.h
parentFix typo. (diff)
downloadglibc-35d306307ce3c98faf0377c0f55c95da50311ae6.tar.gz
glibc-35d306307ce3c98faf0377c0f55c95da50311ae6.tar.bz2
glibc-35d306307ce3c98faf0377c0f55c95da50311ae6.zip
Define md5_uintptr.
Diffstat (limited to 'crypt/md5.h')
-rw-r--r--crypt/md5.h10
1 files changed, 7 insertions, 3 deletions
diff --git a/crypt/md5.h b/crypt/md5.h
index 2a5236bf32..7fc56ea5ee 100644
--- a/crypt/md5.h
+++ b/crypt/md5.h
@@ -1,6 +1,6 @@
/* Declaration of functions and data types used for MD5 sum computing
library functions.
- Copyright (C) 1995, 1996, 1997, 1999, 2000 Free Software Foundation, Inc.
+ Copyright (C) 1995,1996,1997,1999,2000,2001 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
@@ -35,8 +35,9 @@
is usually not possible. */
#ifdef _LIBC
-# include <sys/types.h>
-typedef u_int32_t md5_uint32;
+# include <stdint.h>
+typedef uint32_t md5_uint32;
+typedef uintptr_t md5_uintptr;
#else
# if defined __STDC__ && __STDC__
# define UINT_MAX_32_BITS 4294967295U
@@ -68,6 +69,9 @@ typedef u_int32_t md5_uint32;
# endif
# endif
# endif
+/* We have to make a guess about the integer type equivalent in size
+ to pointers which should always be correct. */
+typedef unsigned long int md5_uintptr;
#endif
#undef __P