Move SECP256K1_INLINE macro definition out from include/secp256k1.h

This commit is contained in:
Hennadii Stepanov
2023-03-09 15:29:56 +00:00
parent 77445898a5
commit 8e142ca410
14 changed files with 28 additions and 12 deletions

View File

@@ -122,18 +122,6 @@ typedef int (*secp256k1_nonce_function)(
# endif
# endif
# if (!defined(__STDC_VERSION__) || (__STDC_VERSION__ < 199901L) )
# if SECP256K1_GNUC_PREREQ(2,7)
# define SECP256K1_INLINE __inline__
# elif (defined(_MSC_VER))
# define SECP256K1_INLINE __inline
# else
# define SECP256K1_INLINE
# endif
# else
# define SECP256K1_INLINE inline
# endif
/* When this header is used at build-time the SECP256K1_BUILD define needs to be set
* to correctly setup export attributes and nullness checks. This is normally done
* by secp256k1.c but to guard against this header being included before secp256k1.c