diff options
author | Eric Andersen <andersen@codepoet.org> | 2000-12-01 19:02:24 +0000 |
---|---|---|
committer | Eric Andersen <andersen@codepoet.org> | 2000-12-01 19:02:24 +0000 |
commit | 87559829ffc79b94adcee00b64706ce78ff2f3fb (patch) | |
tree | 75120bd48cfcb5744e62162b9110e67bf1faa2e4 /coreutils/md5sum.c | |
parent | 3e856ce428cabaf6c8d99a2374a1f9a4a05db5f0 (diff) | |
download | busybox-w32-87559829ffc79b94adcee00b64706ce78ff2f3fb.tar.gz busybox-w32-87559829ffc79b94adcee00b64706ce78ff2f3fb.tar.bz2 busybox-w32-87559829ffc79b94adcee00b64706ce78ff2f3fb.zip |
Remove #ifdef __STDC__ junk. We don't do K&R round these parts,
so no point acting like we do.
Diffstat (limited to 'coreutils/md5sum.c')
-rw-r--r-- | coreutils/md5sum.c | 40 |
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> |
112 | typedef u_int32_t md5_uint32; | 111 | typedef 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. */ |
154 | struct md5_ctx | 114 | struct md5_ctx |