Remove compatibility 'inline' define.
MSVC 2015 seems to support it just fine.
Change-Id: I9c91c18c260031e6024480d1f57bbb334ed7118c
Reviewed-on: https://boringssl-review.googlesource.com/8501
Reviewed-by: Adam Langley <agl@google.com>
diff --git a/crypto/internal.h b/crypto/internal.h
index e35fb7b..05fa569 100644
--- a/crypto/internal.h
+++ b/crypto/internal.h
@@ -141,10 +141,6 @@
void OPENSSL_cpuid_setup(void);
#endif
-#if !defined(inline)
-#define inline __inline
-#endif
-
#if !defined(_MSC_VER) && defined(OPENSSL_64_BIT)
typedef __int128_t int128_t;
diff --git a/ssl/d1_both.c b/ssl/d1_both.c
index 690a29f..e23d294 100644
--- a/ssl/d1_both.c
+++ b/ssl/d1_both.c
@@ -186,13 +186,9 @@
return NULL;
}
-#if !defined(inline)
-#define inline __inline
-#endif
-
/* bit_range returns a |uint8_t| with bits |start|, inclusive, to |end|,
* exclusive, set. */
-static inline uint8_t bit_range(size_t start, size_t end) {
+static uint8_t bit_range(size_t start, size_t end) {
return (uint8_t)(~((1u << start) - 1) & ((1u << end) - 1));
}