Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: orxonox.OLD/branches/preferences/src/lib/argp/argp-namefrob.h @ 6394

Last change on this file since 6394 was 6393, checked in by rennerc, 19 years ago

added libargp to orxonox

File size: 3.4 KB
Line 
1/* Name frobnication for compiling argp outside of glibc
2   Copyright (C) 1997 Free Software Foundation, Inc.
3   This file is part of the GNU C Library.
4   Written by Miles Bader <miles@gnu.ai.mit.edu>.
5
6   The GNU C Library is free software; you can redistribute it and/or
7   modify it under the terms of the GNU Library General Public License as
8   published by the Free Software Foundation; either version 2 of the
9   License, or (at your option) any later version.
10
11   The GNU C Library 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 GNU
14   Library General Public License for more details.
15
16   You should have received a copy of the GNU Library General Public
17   License along with the GNU C Library; see the file COPYING.LIB.  If not,
18   write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
19   Boston, MA 02111-1307, USA.  */
20
21#if !_LIBC
22/* This code is written for inclusion in gnu-libc, and uses names in the
23   namespace reserved for libc.  If we're not compiling in libc, define those
24   names to be the normal ones instead.  */
25
26/* argp-parse functions */
27#undef __argp_parse
28#define __argp_parse argp_parse
29#undef __option_is_end
30#define __option_is_end _option_is_end
31#undef __option_is_short
32#define __option_is_short _option_is_short
33#undef __argp_input
34#define __argp_input _argp_input
35
36/* argp-help functions */
37#undef __argp_help
38#define __argp_help argp_help
39#undef __argp_error
40#define __argp_error argp_error
41#undef __argp_failure
42#define __argp_failure argp_failure
43#undef __argp_state_help
44#define __argp_state_help argp_state_help
45#undef __argp_usage
46#define __argp_usage argp_usage
47#undef __argp_basename
48#define __argp_basename _argp_basename
49#undef __argp_short_program_name
50#define __argp_short_program_name _argp_short_program_name
51
52/* argp-fmtstream functions */
53#undef __argp_make_fmtstream
54#define __argp_make_fmtstream argp_make_fmtstream
55#undef __argp_fmtstream_free
56#define __argp_fmtstream_free argp_fmtstream_free
57#undef __argp_fmtstream_putc
58#define __argp_fmtstream_putc argp_fmtstream_putc
59#undef __argp_fmtstream_puts
60#define __argp_fmtstream_puts argp_fmtstream_puts
61#undef __argp_fmtstream_write
62#define __argp_fmtstream_write argp_fmtstream_write
63#undef __argp_fmtstream_printf
64#define __argp_fmtstream_printf argp_fmtstream_printf
65#undef __argp_fmtstream_set_lmargin
66#define __argp_fmtstream_set_lmargin argp_fmtstream_set_lmargin
67#undef __argp_fmtstream_set_rmargin
68#define __argp_fmtstream_set_rmargin argp_fmtstream_set_rmargin
69#undef __argp_fmtstream_set_wmargin
70#define __argp_fmtstream_set_wmargin argp_fmtstream_set_wmargin
71#undef __argp_fmtstream_point
72#define __argp_fmtstream_point argp_fmtstream_point
73#undef __argp_fmtstream_update
74#define __argp_fmtstream_update _argp_fmtstream_update
75#undef __argp_fmtstream_ensure
76#define __argp_fmtstream_ensure _argp_fmtstream_ensure
77#undef __argp_fmtstream_lmargin
78#define __argp_fmtstream_lmargin argp_fmtstream_lmargin
79#undef __argp_fmtstream_rmargin
80#define __argp_fmtstream_rmargin argp_fmtstream_rmargin
81#undef __argp_fmtstream_wmargin
82#define __argp_fmtstream_wmargin argp_fmtstream_wmargin
83
84/* normal libc functions we call */
85#undef __sleep
86#define __sleep sleep
87#undef __strcasecmp
88#define __strcasecmp strcasecmp
89#undef __vsnprintf
90#define __vsnprintf vsnprintf
91
92#endif /* !_LIBC */
93
94#ifndef __set_errno
95#define __set_errno(e) (errno = (e))
96#endif
Note: See TracBrowser for help on using the repository browser.