]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
Don't conditionalize use of "inline". Autoconf takes care of defining
authorJim Meyering <jim@meyering.net>
Sat, 24 Jun 1995 21:33:52 +0000 (21:33 +0000)
committerJim Meyering <jim@meyering.net>
Sat, 24 Jun 1995 21:33:52 +0000 (21:33 +0000)
it away for compilers that don't grok it.

src/md5sum.c

index b72e2d646b4890785a7ba2617b11740aa8cedc3b..7ea95710686c2e2f3e2c09ed09a0a2e05fd61e39 100644 (file)
 # 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;