]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
lib: use `#error` instead of invalid syntax in `curl_setup_once.h`
authorViktor Szakats <commit@vsz.me>
Thu, 4 Apr 2024 20:01:05 +0000 (20:01 +0000)
committerViktor Szakats <commit@vsz.me>
Fri, 5 Apr 2024 09:24:05 +0000 (09:24 +0000)
Reviewed-by: Daniel Stenberg
Closes #13287

lib/curl_setup_once.h

index bf0ee663d351229cd14357fecd6010c81980efe0..40c7bcbff07e2d97ef766fd4567a0123ca51cc0f 100644 (file)
@@ -164,9 +164,7 @@ struct timeval {
                                    (RECV_TYPE_ARG4)(0))
 #else /* HAVE_RECV */
 #ifndef sread
-  /* */
-  Error Missing_definition_of_macro_sread
-  /* */
+#error "Missing definition of macro sread!"
 #endif
 #endif /* HAVE_RECV */
 
@@ -184,9 +182,7 @@ struct timeval {
                                     (SEND_TYPE_ARG4)(SEND_4TH_ARG))
 #else /* HAVE_SEND */
 #ifndef swrite
-  /* */
-  Error Missing_definition_of_macro_swrite
-  /* */
+#error "Missing definition of macro swrite!"
 #endif
 #endif /* HAVE_SEND */