libg722_1 0.1.0
lt__glibc.h
1/* lt__glibc.h -- support for non glibc environments
2
3 Copyright (C) 2004, 2006-2007, 2011-2019, 2021-2024 Free Software
4 Foundation, Inc.
5 Written by Gary V. Vaughan, 2004
6
7 NOTE: The canonical source of this file is maintained with the
8 GNU Libtool package. Report bugs to bug-libtool@gnu.org.
9
10GNU Libltdl is free software; you can redistribute it and/or
11modify it under the terms of the GNU Lesser General Public
12License as published by the Free Software Foundation; either
13version 2 of the License, or (at your option) any later version.
14
15As a special exception to the GNU Lesser General Public License,
16if you distribute this file as part of a program or library that
17is built using GNU Libtool, you may include this file under the
18same distribution terms that you use for the rest of that program.
19
20GNU Libltdl is distributed in the hope that it will be useful,
21but WITHOUT ANY WARRANTY; without even the implied warranty of
22MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
23GNU Lesser General Public License for more details.
24
25You should have received a copy of the GNU Lesser General Public
26License along with GNU Libltdl. If not, see <https://www.gnu.org/licenses/>.
27*/
28
29#if !defined LT__GLIBC_H
30#define LT__GLIBC_H 1
31
32#if defined LT_CONFIG_H
33# include LT_CONFIG_H
34#else
35# include <config.h>
36#endif
37
38#if !defined HAVE_ARGZ_H || !defined HAVE_WORKING_ARGZ
39/* Redefine any glibc symbols we reimplement to import the
40 implementations into our lt__ namespace so we don't ever
41 clash with the system library if our clients use argz_*
42 from there in addition to libltdl. */
43# undef argz_append
44# define argz_append lt__argz_append
45# undef argz_create_sep
46# define argz_create_sep lt__argz_create_sep
47# undef argz_insert
48# define argz_insert lt__argz_insert
49# undef argz_next
50# define argz_next lt__argz_next
51# undef argz_stringify
52# define argz_stringify lt__argz_stringify
53
54# include <lt__argz.h>
55
56#else
57
58#ifdef __cplusplus
59extern "C" {
60#endif
61
62#include <argz.h>
63
64#ifdef __cplusplus
65}
66#endif
67
68#endif /*!defined HAVE_ARGZ_H || !defined HAVE_WORKING_ARGZ*/
69
70# define slist_concat lt__slist_concat
71# define slist_cons lt__slist_cons
72# define slist_delete lt__slist_delete
73# define slist_remove lt__slist_remove
74# define slist_reverse lt__slist_reverse
75# define slist_sort lt__slist_sort
76# define slist_tail lt__slist_tail
77# define slist_nth lt__slist_nth
78# define slist_find lt__slist_find
79# define slist_length lt__slist_length
80# define slist_foreach lt__slist_foreach
81# define slist_box lt__slist_box
82# define slist_unbox lt__slist_unbox
83
84#include <slist.h>
85
86#endif /*!defined LT__GLIBC_H*/