]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
lib: make `__STDC_VERSION__` literals `L` (where missing)
authorViktor Szakats <commit@vsz.me>
Thu, 14 May 2026 08:57:34 +0000 (10:57 +0200)
committerViktor Szakats <commit@vsz.me>
Thu, 14 May 2026 16:35:49 +0000 (18:35 +0200)
lib/curl_setup.h
lib/curl_sha512_256.c

index 0d4a8fa5777a6b2970da5b72a1139f43091fb6aa..312df9d9c3d26a34845a78f6199c0d3c9ab882aa 100644 (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
index 5c3bcdf800ca61f9abdee754123c0e9f73f48833..02baf88f4d5b8a5ace52f952ef6258c2dc51f384 100644 (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