Annotation of parser3/src/lib/ltdl/libltdl/lt__glibc.h, revision 1.3

1.1       moko        1: /* lt__glibc.h -- support for non glibc environments
                      2: 
1.3     ! moko        3:    Copyright (C) 2004, 2006-2007, 2011-2019, 2021-2024 Free Software
        !             4:    Foundation, Inc.
1.1       moko        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
1.3     ! moko       26: License along with GNU Libltdl.  If not, see <https://www.gnu.org/licenses/>.
1.1       moko       27: */
                     28: 
1.3     ! moko       29: #if !defined LT__GLIBC_H
1.1       moko       30: #define LT__GLIBC_H 1
                     31: 
1.3     ! moko       32: #if defined LT_CONFIG_H
1.1       moko       33: #  include LT_CONFIG_H
                     34: #else
                     35: #  include <config.h>
                     36: #endif
                     37: 
1.3     ! moko       38: #if !defined HAVE_ARGZ_H || !defined HAVE_WORKING_ARGZ
1.1       moko       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
1.3     ! moko       53: 
        !            54: #  include <lt__argz.h>
        !            55: 
        !            56: #else
1.1       moko       57: 
                     58: #ifdef __cplusplus
                     59: extern "C" {
                     60: #endif
                     61: 
1.3     ! moko       62: #include <argz.h>
1.1       moko       63: 
                     64: #ifdef __cplusplus
                     65: }
                     66: #endif
                     67: 
1.3     ! moko       68: #endif /*!defined HAVE_ARGZ_H || !defined HAVE_WORKING_ARGZ*/
        !            69: 
1.1       moko       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: 
1.3     ! moko       86: #endif /*!defined LT__GLIBC_H*/

E-mail: