summaryrefslogtreecommitdiffstats
path: root/gl/m4/extensions.m4
diff options
context:
space:
mode:
Diffstat (limited to 'gl/m4/extensions.m4')
-rw-r--r--gl/m4/extensions.m425
1 files changed, 19 insertions, 6 deletions
diff --git a/gl/m4/extensions.m4 b/gl/m4/extensions.m4
index 5336b8da..76516bce 100644
--- a/gl/m4/extensions.m4
+++ b/gl/m4/extensions.m4
@@ -1,10 +1,12 @@
1# serial 23 -*- Autoconf -*- 1# extensions.m4
2# Enable extensions on systems that normally disable them. 2# serial 25 -*- Autoconf -*-
3dnl Copyright (C) 2003, 2006-2025 Free Software Foundation, Inc.
4dnl This file is free software; the Free Software Foundation
5dnl gives unlimited permission to copy and/or distribute it,
6dnl with or without modifications, as long as this notice is preserved.
7dnl This file is offered as-is, without any warranty.
3 8
4# Copyright (C) 2003, 2006-2023 Free Software Foundation, Inc. 9# Enable extensions on systems that normally disable them.
5# This file is free software; the Free Software Foundation
6# gives unlimited permission to copy and/or distribute it,
7# with or without modifications, as long as this notice is preserved.
8 10
9dnl Define to empty for the benefit of Autoconf 2.69 and earlier, so that 11dnl Define to empty for the benefit of Autoconf 2.69 and earlier, so that
10dnl AC_USE_SYSTEM_EXTENSIONS (below) can be used unchanged from Autoconf 2.70+. 12dnl AC_USE_SYSTEM_EXTENSIONS (below) can be used unchanged from Autoconf 2.70+.
@@ -229,4 +231,15 @@ AC_DEFUN_ONCE([gl_USE_SYSTEM_EXTENSIONS],
229 [Define to enable the declarations of ISO C 11 types and functions.]) 231 [Define to enable the declarations of ISO C 11 types and functions.])
230 ;; 232 ;;
231 esac 233 esac
234
235 dnl On OpenSolaris derivatives, the include files contains a couple of
236 dnl declarations that are only activated with an explicit
237 dnl -D__STDC_WANT_LIB_EXT1__.
238 AH_VERBATIM([USE_ISO_C_23_ANNEX_K_EXTENSIONS],
239[/* Define to enable the declarations of ISO C 23 Annex K types and functions. */
240#if !(defined __STDC_WANT_LIB_EXT1__ && __STDC_WANT_LIB_EXT1__)
241#undef/**/__STDC_WANT_LIB_EXT1__
242#define __STDC_WANT_LIB_EXT1__ 1
243#endif
244])
232]) 245])