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