2 * replace.c -- Get replacement versions of functions.
6 * Copyright (C) 1989, 1991-2013 the Free Software Foundation, Inc.
8 * This file is part of GAWK, the GNU implementation of the
9 * AWK Programming Language.
11 * GAWK is free software; you can redistribute it and/or modify
12 * it under the terms of the GNU General Public License as published by
13 * the Free Software Foundation; either version 3 of the License, or
14 * (at your option) any later version.
16 * GAWK is distributed in the hope that it will be useful,
17 * but WITHOUT ANY WARRANTY; without even the implied warranty of
18 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19 * GNU General Public License for more details.
21 * You should have received a copy of the GNU General Public License
22 * along with this program; if not, write to the Free Software
23 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
27 * Do all necessary includes here, so that we don't have to worry about
28 * overlapping includes in the files in missing.d.
30 #include "awk.h" /* includes config.h for us */
34 #include "missing_d/system.c"
35 #endif /* HAVE_SYSTEM */
38 #include "missing_d/memcmp.c"
39 #endif /* HAVE_MEMCMP */
42 #include "missing_d/memcpy.c"
43 #endif /* HAVE_MEMCPY */
46 #include "missing_d/memset.c"
47 #endif /* HAVE_MEMSET */
50 #include "missing_d/memmove.c"
51 #endif /* HAVE_MEMMOVE */
53 #ifndef HAVE_STRNCASECMP
54 #include "missing_d/strncasecmp.c"
55 #endif /* HAVE_STRCASE */
58 #include "missing_d/strerror.c"
59 #endif /* HAVE_STRERROR */
63 /* Need to use underlying_strftime in replacement strftime. */
64 # define HAVE_STRFTIME 1
66 #include "missing_d/strftime.c"
70 #endif /* HAVE_STRFTIME */
73 #include "missing_d/strchr.c"
74 #endif /* HAVE_STRCHR */
76 #if !defined(HAVE_STRTOD)
77 #include "missing_d/strtod.c"
78 #endif /* HAVE_STRTOD */
81 #include "missing_d/strtoul.c"
82 #endif /* HAVE_STRTOUL */
85 #include "missing_d/tzset.c"
86 #endif /* HAVE_TZSET */
89 /* mktime.c defines main() if DEBUG is set */
91 #include "missing_d/mktime.c"
92 #endif /* HAVE_MKTIME */
95 #include "missing_d/snprintf.c"
98 #if defined(HAVE_SOCKETS) && ! defined(HAVE_GETADDRINFO)
99 #include "missing_d/getaddrinfo.c"
103 #include "missing_d/usleep.c"
107 #include "missing_d/setenv.c"
111 #include "missing_d/strcoll.c"
115 #include "missing_d/wcmisc.c"