]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
build: use `#error` instead of invalid syntax
authorViktor Szakats <commit@vsz.me>
Sat, 13 Jul 2024 19:45:23 +0000 (21:45 +0200)
committerViktor Szakats <commit@vsz.me>
Sun, 14 Jul 2024 12:03:00 +0000 (14:03 +0200)
It reduces configure log noise.

Follow-up to 20c1b2d75ee38189ffa75d21ed04108e1e0630ae #13287
Closes #14181

CMake/OtherTests.cmake
acinclude.m4
m4/curl-functions.m4
m4/curl-reentrant.m4

index 7701c0ee93b30a7b506eaaa0fe0a57bc18f69099..2fddb867c8f835cf07e0ff027279f57c4bc5b42f 100644 (file)
@@ -137,7 +137,7 @@ if(NOT DEFINED HAVE_GETADDRINFO_THREADSAFE)
     #ifdef h_errno
       return 0;
     #else
-      force compilation error
+      #error force compilation error
     #endif
     }" HAVE_H_ERRNO)
 
@@ -158,7 +158,7 @@ if(NOT DEFINED HAVE_GETADDRINFO_THREADSAFE)
         #elif defined(_XOPEN_SOURCE) && (_XOPEN_SOURCE >= 700)
           return 0;
         #else
-          force compilation error
+          #error force compilation error
         #endif
         }" HAVE_H_ERRNO_SBS_ISSUE_7)
     endif()
index 7b5526d36c00f7c11f5171ab6ee7f7ff3849ff79..f86445ce41f3d9f334c9e8db1d7c7a2398065f4e 100644 (file)
@@ -94,7 +94,7 @@ int main (void)
 #ifdef $1
   return 0;
 #else
-  force compilation error
+  #error force compilation error
 #endif
 }
     ]])
@@ -130,7 +130,7 @@ int main (void)
 #elif defined(__hpux) && defined(_XOPEN_SOURCE_EXTENDED)
   return 0;
 #else
-  force compilation error
+  #error force compilation error
 #endif
 }
     ]])
index d1ef5e70dd0895e3af1d3dc032532b16d46b030e..c65120271a1350b7ddd688ac330e5bddbb38059a 100644 (file)
@@ -1563,7 +1563,7 @@ AC_DEFUN([CURL_CHECK_FUNC_GETADDRINFO], [
 #elif defined(_XOPEN_SOURCE) && (_XOPEN_SOURCE >= 700)
           return 0;
 #else
-          force compilation error
+          #error force compilation error
 #endif
         ]])
       ],[
index c1f333982dee6cdc4f092d40aae5d50764c76ec4..256f53c7da2a6548073115d6c2094a37fb8eef86 100644 (file)
@@ -58,7 +58,7 @@ AC_DEFUN([CURL_CHECK_NEED_REENTRANT_ERRNO], [
 #ifdef errno
         int dummy=1;
 #else
-        force compilation error
+        #error force compilation error
 #endif
       ]])
     ],[
@@ -72,7 +72,7 @@ AC_DEFUN([CURL_CHECK_NEED_REENTRANT_ERRNO], [
 #ifdef errno
           int dummy=1;
 #else
-          force compilation error
+          #error force compilation error
 #endif
         ]])
       ],[
@@ -413,7 +413,7 @@ AC_DEFUN([CURL_CONFIGURE_REENTRANT], [
 #ifdef _REENTRANT
       int dummy=1;
 #else
-      force compilation error
+      #error force compilation error
 #endif
     ]])
   ],[
@@ -473,7 +473,7 @@ AC_DEFUN([CURL_CONFIGURE_THREAD_SAFE], [
 #ifdef _THREAD_SAFE
       int dummy=1;
 #else
-      force compilation error
+      #error force compilation error
 #endif
     ]])
   ],[