commit c2489bde82a548d0f724af1bacc04797823d5f97
parent 16533685d082efc6f74e0b6b24cb64bfa6a0721a
Author: Evgeny Grin (Karlson2k) <k2k@drgrin.dev>
Date: Thu, 5 Jun 2025 00:51:32 +0200
configure: improved test for alignof() detection
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/configure.ac b/configure.ac
@@ -1501,7 +1501,7 @@ AC_CACHE_CHECK([[for C11 'alignof()' support]], [[mhd_cv_c_alignof]],
#endif
]], [[
/* Should fail if 'alignof()' works */
- int var1[alignof(nonexisting_type) - 1];
+ int var1[alignof(nonexisting_type)];
/* Mute compiler warnings */
var1[0] = 1;