(shishi_kdcreq_build): Add.
[shishi.git] / gl / argp-namefrob.h
blob5dcab32074f960e6426ad539227aac7571304fae
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>.
6 This program is free software; you can redistribute it and/or modify
7 it under the terms of the GNU General Public License as published by
8 the Free Software Foundation; either version 2, or (at your option)
9 any later version.
11 This program 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 General Public License for more details.
16 You should have received a copy of the GNU General Public License along
17 with this program; if not, write to the Free Software Foundation,
18 Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
20 #if !_LIBC
21 /* This code is written for inclusion in gnu-libc, and uses names in the
22 namespace reserved for libc. If we're not compiling in libc, define those
23 names to be the normal ones instead. */
25 /* argp-parse functions */
26 #undef __argp_parse
27 #define __argp_parse argp_parse
28 #undef __option_is_end
29 #define __option_is_end _option_is_end
30 #undef __option_is_short
31 #define __option_is_short _option_is_short
32 #undef __argp_input
33 #define __argp_input _argp_input
35 /* argp-help functions */
36 #undef __argp_help
37 #define __argp_help argp_help
38 #undef __argp_error
39 #define __argp_error argp_error
40 #undef __argp_failure
41 #define __argp_failure argp_failure
42 #undef __argp_state_help
43 #define __argp_state_help argp_state_help
44 #undef __argp_usage
45 #define __argp_usage argp_usage
46 #undef __argp_basename
47 #define __argp_basename _argp_basename
48 #undef __argp_short_program_name
49 #define __argp_short_program_name _argp_short_program_name
51 /* argp-fmtstream functions */
52 #undef __argp_make_fmtstream
53 #define __argp_make_fmtstream argp_make_fmtstream
54 #undef __argp_fmtstream_free
55 #define __argp_fmtstream_free argp_fmtstream_free
56 #undef __argp_fmtstream_putc
57 #define __argp_fmtstream_putc argp_fmtstream_putc
58 #undef __argp_fmtstream_puts
59 #define __argp_fmtstream_puts argp_fmtstream_puts
60 #undef __argp_fmtstream_write
61 #define __argp_fmtstream_write argp_fmtstream_write
62 #undef __argp_fmtstream_printf
63 #define __argp_fmtstream_printf argp_fmtstream_printf
64 #undef __argp_fmtstream_set_lmargin
65 #define __argp_fmtstream_set_lmargin argp_fmtstream_set_lmargin
66 #undef __argp_fmtstream_set_rmargin
67 #define __argp_fmtstream_set_rmargin argp_fmtstream_set_rmargin
68 #undef __argp_fmtstream_set_wmargin
69 #define __argp_fmtstream_set_wmargin argp_fmtstream_set_wmargin
70 #undef __argp_fmtstream_point
71 #define __argp_fmtstream_point argp_fmtstream_point
72 #undef __argp_fmtstream_update
73 #define __argp_fmtstream_update _argp_fmtstream_update
74 #undef __argp_fmtstream_ensure
75 #define __argp_fmtstream_ensure _argp_fmtstream_ensure
76 #undef __argp_fmtstream_lmargin
77 #define __argp_fmtstream_lmargin argp_fmtstream_lmargin
78 #undef __argp_fmtstream_rmargin
79 #define __argp_fmtstream_rmargin argp_fmtstream_rmargin
80 #undef __argp_fmtstream_wmargin
81 #define __argp_fmtstream_wmargin argp_fmtstream_wmargin
83 /* normal libc functions we call */
84 #undef __sleep
85 #define __sleep sleep
86 #undef __strcasecmp
87 #define __strcasecmp strcasecmp
88 #undef __vsnprintf
89 #define __vsnprintf vsnprintf
90 #undef __strchrnul
91 #define __strchrnul strchrnul
92 #undef __mempcpy
93 #define __mempcpy mempcpy
94 #undef __strndup
95 #define __strndup strndup
97 #if defined(HAVE_DECL_CLEARERR_UNLOCKED) && !HAVE_DECL_CLEARERR_UNLOCKED
98 # define clearerr_unlocked(x) clearerr (x)
99 #endif
100 #if defined(HAVE_DECL_FEOF_UNLOCKED) && !HAVE_DECL_FEOF_UNLOCKED
101 # define feof_unlocked(x) feof (x)
102 # endif
103 #if defined(HAVE_DECL_FERROR_UNLOCKED) && !HAVE_DECL_FERROR_UNLOCKED
104 # define ferror_unlocked(x) ferror (x)
105 # endif
106 #if defined(HAVE_DECL_FFLUSH_UNLOCKED) && !HAVE_DECL_FFLUSH_UNLOCKED
107 # define fflush_unlocked(x) fflush (x)
108 # endif
109 #if defined(HAVE_DECL_FGETS_UNLOCKED) && !HAVE_DECL_FGETS_UNLOCKED
110 # define fgets_unlocked(x,y,z) fgets (x,y,z)
111 # endif
112 #if defined(HAVE_DECL_FPUTC_UNLOCKED) && !HAVE_DECL_FPUTC_UNLOCKED
113 # define fputc_unlocked(x,y) fputc (x,y)
114 # endif
115 #if defined(HAVE_DECL_FPUTS_UNLOCKED) && !HAVE_DECL_FPUTS_UNLOCKED
116 # define fputs_unlocked(x,y) fputs (x,y)
117 # endif
118 #if defined(HAVE_DECL_FREAD_UNLOCKED) && !HAVE_DECL_FREAD_UNLOCKED
119 # define fread_unlocked(w,x,y,z) fread (w,x,y,z)
120 # endif
121 #if defined(HAVE_DECL_FWRITE_UNLOCKED) && !HAVE_DECL_FWRITE_UNLOCKED
122 # define fwrite_unlocked(w,x,y,z) fwrite (w,x,y,z)
123 # endif
124 #if defined(HAVE_DECL_GETC_UNLOCKED) && !HAVE_DECL_GETC_UNLOCKED
125 # define getc_unlocked(x) getc (x)
126 # endif
127 #if defined(HAVE_DECL_GETCHAR_UNLOCKED) && !HAVE_DECL_GETCHAR_UNLOCKED
128 # define getchar_unlocked() getchar ()
129 # endif
130 #if defined(HAVE_DECL_PUTC_UNLOCKED) && !HAVE_DECL_PUTC_UNLOCKED
131 # define putc_unlocked(x,y) putc (x,y)
132 # endif
133 #if defined(HAVE_DECL_PUTCHAR_UNLOCKED) && !HAVE_DECL_PUTCHAR_UNLOCKED
134 # define putchar_unlocked(x) putchar (x)
135 # endif
137 #endif /* !_LIBC */
139 #ifndef __set_errno
140 #define __set_errno(e) (errno = (e))
141 #endif