| 1 |
# unitypes_h.m4 |
| 2 |
# serial 1 |
| 3 |
dnl Copyright (C) 2021-2026 Free Software Foundation, Inc. |
| 4 |
dnl This file is free software; the Free Software Foundation |
| 5 |
dnl gives unlimited permission to copy and/or distribute it, |
| 6 |
dnl with or without modifications, as long as this notice is preserved. |
| 7 |
dnl This file is offered as-is, without any warranty. |
| 8 |
|
| 9 |
AC_DEFUN_ONCE([gl_UNITYPES_H], |
| 10 |
[ |
| 11 |
AH_VERBATIM([unitypes_restrict], [ |
| 12 |
/* This definition is a duplicate of the one in unitypes.h. |
| 13 |
It is here so that we can cope with an older version of unitypes.h |
| 14 |
that does not contain this definition and that is pre-installed among |
| 15 |
the public header files. */ |
| 16 |
# if defined __restrict \ |
| 17 |
|| 2 < __GNUC__ + (95 <= __GNUC_MINOR__) \ |
| 18 |
|| __clang_major__ >= 3 |
| 19 |
# define _UC_RESTRICT __restrict |
| 20 |
# elif 199901L <= __STDC_VERSION__ || defined restrict |
| 21 |
# define _UC_RESTRICT restrict |
| 22 |
# else |
| 23 |
# define _UC_RESTRICT |
| 24 |
# endif |
| 25 |
]) |
| 26 |
]) |