lib: make __STDC_VERSION__ literals L (where missing)

This commit is contained in:
Viktor Szakats 2026-05-14 10:57:34 +02:00
parent 1a69c3a9c0
commit 27936d411a
No known key found for this signature in database
2 changed files with 2 additions and 2 deletions

View file

@ -1578,7 +1578,7 @@ typedef struct sockaddr_un {
/* The code is compiled with C++ compiler.
C++ always supports 'inline'. */
# define CURL_INLINE inline /* 'inline' keyword supported */
#elif defined(__STDC_VERSION__) && __STDC_VERSION__ >= 199901
#elif defined(__STDC_VERSION__) && __STDC_VERSION__ >= 199901L
/* C99 (and later) supports 'inline' keyword */
# define CURL_INLINE inline /* 'inline' keyword supported */
#elif defined(__GNUC__) && __GNUC__ >= 3

View file

@ -301,7 +301,7 @@ static CURLcode Curl_sha512_256_finish(unsigned char *digest, void *context)
#ifdef __GNUC__
# if defined(__has_attribute) && defined(__STDC_VERSION__)
# if __has_attribute(always_inline) && __STDC_VERSION__ >= 199901
# if __has_attribute(always_inline) && __STDC_VERSION__ >= 199901L
# define CURL_FORCEINLINE CURL_INLINE __attribute__((always_inline))
# endif
# endif