aboutsummaryrefslogtreecommitdiff
path: root/coreutils
diff options
context:
space:
mode:
authorandersen <andersen@69ca8d6d-28ef-0310-b511-8ec308f3f277>2000-12-01 19:02:24 +0000
committerandersen <andersen@69ca8d6d-28ef-0310-b511-8ec308f3f277>2000-12-01 19:02:24 +0000
commitc8166b5b2b56c8170e85391435e57dbfdcaec89b (patch)
tree75120bd48cfcb5744e62162b9110e67bf1faa2e4 /coreutils
parent8cb2f75a75eb9694f36312ab4856d335ab2bac19 (diff)
downloadbusybox-w32-c8166b5b2b56c8170e85391435e57dbfdcaec89b.tar.gz
busybox-w32-c8166b5b2b56c8170e85391435e57dbfdcaec89b.tar.bz2
busybox-w32-c8166b5b2b56c8170e85391435e57dbfdcaec89b.zip
Remove #ifdef __STDC__ junk. We don't do K&R round these parts,
so no point acting like we do. git-svn-id: svn://busybox.net/trunk/busybox@1361 69ca8d6d-28ef-0310-b511-8ec308f3f277
Diffstat (limited to 'coreutils')
-rw-r--r--coreutils/md5sum.c40
1 files changed, 0 insertions, 40 deletions
diff --git a/coreutils/md5sum.c b/coreutils/md5sum.c
index 30b882ab5..84e037a61 100644
--- a/coreutils/md5sum.c
+++ b/coreutils/md5sum.c
@@ -107,48 +107,8 @@ extern _IO_ssize_t getline __P ((char **, size_t *, FILE *));
107 the resulting executable. Locally running cross-compiled executables 107 the resulting executable. Locally running cross-compiled executables
108 is usually not possible. */ 108 is usually not possible. */
109 109
110#ifdef _LIBC
111# include <sys/types.h> 110# include <sys/types.h>
112typedef u_int32_t md5_uint32; 111typedef u_int32_t md5_uint32;
113#else
114# if defined __STDC__ && __STDC__
115# define UINT_MAX_32_BITS 4294967295U
116# else
117# define UINT_MAX_32_BITS 0xFFFFFFFF
118# endif
119
120/* If UINT_MAX isn't defined, assume it's a 32-bit type.
121 This should be valid for all systems GNU cares about because
122 that doesn't include 16-bit systems, and only modern systems
123 (that certainly have <limits.h>) have 64+-bit integral types. */
124
125# ifndef UINT_MAX
126# define UINT_MAX UINT_MAX_32_BITS
127# endif
128
129# if UINT_MAX == UINT_MAX_32_BITS
130 typedef unsigned int md5_uint32;
131# else
132# if USHRT_MAX == UINT_MAX_32_BITS
133 typedef unsigned short md5_uint32;
134# else
135# if ULONG_MAX == UINT_MAX_32_BITS
136 typedef unsigned long md5_uint32;
137# else
138 /* The following line is intended to evoke an error.
139 Using #error is not portable enough. */
140 "Cannot determine unsigned 32-bit data type."
141# endif
142# endif
143# endif
144#endif
145
146#undef __P
147#if defined (__STDC__) && __STDC__
148#define __P(x) x
149#else
150#define __P(x) ()
151#endif
152 112
153/* Structure to save state of computation between the single steps. */ 113/* Structure to save state of computation between the single steps. */
154struct md5_ctx 114struct md5_ctx