]> Savannah Git Hosting - gnulib.git/commitdiff
stddef: Try harder to get max_align_t defined on OpenBSD.
authorBruno Haible <bruno@clisp.org>
Fri, 1 Jan 2021 22:07:24 +0000 (23:07 +0100)
committerBruno Haible <bruno@clisp.org>
Fri, 1 Jan 2021 22:07:24 +0000 (23:07 +0100)
* m4/stddef_h.m4 (gl_STDDEF_H): Require gl_USE_SYSTEM_EXTENSIONS.

ChangeLog
m4/stddef_h.m4

index 85b00990051960aafbf9ac78940ee822273cde0c..2d498a5e96610016c65b949ca806a98bfc6e79e7 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2021-01-01  Bruno Haible  <bruno@clisp.org>
+
+       stddef: Try harder to get max_align_t defined on OpenBSD.
+       * m4/stddef_h.m4 (gl_STDDEF_H): Require gl_USE_SYSTEM_EXTENSIONS.
+
 2021-01-01  Bruno Haible  <bruno@clisp.org>
 
        aligned_alloc: Fix test failure on OpenBSD 6.8.
index 18e872f483ebc3632b9e4ad9a5f0615648b54a45..7869621c0f9add2ca75ea4021538616fc768337a 100644 (file)
@@ -1,14 +1,19 @@
-dnl A placeholder for <stddef.h>, for platforms that have issues.
-# stddef_h.m4 serial 7
+# stddef_h.m4 serial 8
 dnl Copyright (C) 2009-2021 Free Software Foundation, Inc.
 dnl This file is free software; the Free Software Foundation
 dnl gives unlimited permission to copy and/or distribute it,
 dnl with or without modifications, as long as this notice is preserved.
 
+dnl A placeholder for <stddef.h>, for platforms that have issues.
+
 AC_DEFUN([gl_STDDEF_H],
 [
   AC_REQUIRE([gl_STDDEF_H_DEFAULTS])
   AC_REQUIRE([gt_TYPE_WCHAR_T])
+
+  dnl Persuade OpenBSD <stddef.h> to declare max_align_t.
+  AC_REQUIRE([gl_USE_SYSTEM_EXTENSIONS])
+
   STDDEF_H=
 
   dnl Test whether the type max_align_t exists and whether its alignment