diff options
author | Jim Meyering <jim@meyering.net> | 1995-06-24 21:33:52 +0000 |
---|---|---|
committer | Jim Meyering <jim@meyering.net> | 1995-06-24 21:33:52 +0000 |
commit | 4610e33cb26725f3535961ed752ea02b0f2821ab (patch) | |
tree | 9a834f9e0252369183ab2679fa8ca64946527181 | |
parent | 9cda676546e73199a27b1bf0335e122d65bd49cd (diff) | |
download | coreutils-4610e33cb26725f3535961ed752ea02b0f2821ab.tar.xz |
Don't conditionalize use of "inline". Autoconf takes care of defining
it away for compilers that don't grok it.
-rw-r--r-- | src/md5sum.c | 14 |
1 files changed, 4 insertions, 10 deletions
diff --git a/src/md5sum.c b/src/md5sum.c index b72e2d646..7ea957106 100644 --- a/src/md5sum.c +++ b/src/md5sum.c @@ -82,12 +82,6 @@ # define __P(args) () #endif -#ifdef __GNUC__ -# define INLINE __inline -#else -# define INLINE /* empty */ -#endif - /* The following contortions are an attempt to use the C preprocessor to determine an unsigned integral type that is 32 bits wide. An alternative approach is to use autoconf's AC_CHECK_SIZEOF macro, but @@ -163,8 +157,8 @@ char *xmalloc (); /* Prototypes for local functions. */ static void usage __P ((int status)); -static INLINE void init __P ((struct md5_ctx *ctx)); -static INLINE void *result __P ((const struct md5_ctx *ctx, void *resbuf)); +static inline void init __P ((struct md5_ctx *ctx)); +static inline void *result __P ((const struct md5_ctx *ctx, void *resbuf)); void *md5_file __P ((const char *filename, void *resblock, int binary)); void *md5_buffer __P ((const char *buffer, size_t len, void *resblock)); static void process_buffer __P ((const void *buffer, size_t len, @@ -471,7 +465,7 @@ produce a list with the checksum informations. A file name - denotes stdin.\n") /* Initialize structure containing state of computation. (RFC 1321, 3.3: Step 3) */ -static INLINE void +static inline void init (ctx) struct md5_ctx *ctx; { @@ -483,7 +477,7 @@ init (ctx) /* Put result from CTX in first 16 bytes following RESBUF. The result must be in little endian byte order. */ -static INLINE void * +static inline void * result (ctx, resbuf) const struct md5_ctx *ctx; void *resbuf; |