curl-functions.m4: fix indentation in CURL_SIZEOF()

Closes #15981
This commit is contained in:
Viktor Szakats 2025-01-11 12:55:02 +01:00
parent c4ba49ca02
commit 94cfcb1e21
No known key found for this signature in database
GPG Key ID: B5ABD165E2AEF201

View File

@ -4509,19 +4509,21 @@ AC_DEFUN([CURL_SIZEOF], [
r=0 r=0
dnl Check the sizes in a reasonable order dnl Check the sizes in a reasonable order
for typesize in 8 4 2 16 1; do for typesize in 8 4 2 16 1; do
AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[ AC_COMPILE_IFELSE([
#include <sys/types.h> AC_LANG_PROGRAM([[
$2 #include <sys/types.h>
]], $2
[switch(0) { ]],[
case 0: switch(0) {
case (sizeof($1) == $typesize):; case 0:
} case (sizeof($1) == $typesize):;
]) ], }
[ ])
r=$typesize], ],[
[ r=$typesize
r=0]) ],[
r=0
])
dnl get out of the loop once matched dnl get out of the loop once matched
if test $r -gt 0; then if test $r -gt 0; then
break; break;