exp2l: Work around a NetBSD 10.0/i386 bug.
[gnulib.git] / lib / argp-xinl.c
blob2f9dab406a805787db8b7889ffb1bfd1e1c34ac9
1 /* Real definitions for extern inline functions in argp.h
2 Copyright (C) 1997-2024 Free Software Foundation, Inc.
3 This file is part of the GNU C Library.
4 Written by Miles Bader <miles@gnu.ai.mit.edu>.
6 This file is free software: you can redistribute it and/or modify
7 it under the terms of the GNU Lesser General Public License as
8 published by the Free Software Foundation, either version 3 of the
9 License, or (at your option) any later version.
11 This file is distributed in the hope that it will be useful,
12 but WITHOUT ANY WARRANTY; without even the implied warranty of
13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 GNU Lesser General Public License for more details.
16 You should have received a copy of the GNU Lesser General Public License
17 along with this program. If not, see <https://www.gnu.org/licenses/>. */
19 #ifdef HAVE_CONFIG_H
20 # include <config.h>
21 #endif
23 #if defined _LIBC || defined HAVE_FEATURES_H
24 # include <features.h>
25 #endif
27 #ifndef __USE_EXTERN_INLINES
28 # define __USE_EXTERN_INLINES 1
29 #endif
30 #ifdef _LIBC
31 # define ARGP_EI
32 #else
33 # define ARGP_EI _GL_EXTERN_INLINE
34 #endif
35 #undef __OPTIMIZE__
36 #define __OPTIMIZE__ 1
37 #include "argp.h"
39 /* Add weak aliases. */
40 #if _LIBC - 0 && defined (weak_alias)
42 weak_alias (__argp_usage, argp_usage)
43 weak_alias (__option_is_short, _option_is_short)
44 weak_alias (__option_is_end, _option_is_end)
46 #endif