Skip to content

Commit

Permalink
curl_sha512_256: do not look for 'inline' replacement when not needed
Browse files Browse the repository at this point in the history
  • Loading branch information
Karlson2k committed Apr 14, 2024
1 parent 7c93bfd commit a756591
Showing 1 changed file with 3 additions and 17 deletions.
20 changes: 3 additions & 17 deletions lib/curl_sha512_256.c
Original file line number Diff line number Diff line change
Expand Up @@ -292,23 +292,9 @@ Curl_sha512_256_finish(unsigned char *digest,
#endif

#if !defined(MHDX_INLINE)
# if defined(inline)
/* Assume that 'inline' macro was already defined correctly by
* the build system. */
# define MHDX_INLINE inline
# elif defined(__cplusplus)
/* The code is compiled with C++ compiler.
* C++ always supports 'inline'. */
# define MHDX_INLINE inline
# elif defined(__STDC_VERSION__) && __STDC_VERSION__ >= 199901
/* C99 (and later) supports 'inline' keyword */
# define MHDX_INLINE inline
# elif defined(__GNUC__) && __GNUC__ >= 3
/* GCC supports '__inline__' as an extension */
# define MHDX_INLINE __inline__
# else
# define MHDX_INLINE /* empty */
# endif
/* Assume that 'inline' macro was already defined correctly by
* the build system or by the 'curl_setup.h' header. */
# define MHDX_INLINE inline
#endif

/* Bits manipulation macros and functions.
Expand Down

0 comments on commit a756591

Please sign in to comment.