1
/* Copyright 2000-2005 The Apache Software Foundation or its licensors, as
4
* Licensed under the Apache License, Version 2.0 (the "License");
5
* you may not use this file except in compliance with the License.
6
* You may obtain a copy of the License at
8
* http://www.apache.org/licenses/LICENSE-2.0
10
* Unless required by applicable law or agreed to in writing, software
11
* distributed under the License is distributed on an "AS IS" BASIS,
12
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
* See the License for the specific language governing permissions and
14
* limitations under the License.
17
#include "apr.h" /* configuration data */
20
* @brief APR Standard Headers Support
25
* APR_WANT_STRFUNC: strcmp, strcat, strcpy, etc
26
* APR_WANT_MEMFUNC: memcmp, memcpy, etc
27
* APR_WANT_STDIO: <stdio.h> and related bits
28
* APR_WANT_IOVEC: struct iovec
29
* APR_WANT_BYTEFUNC: htons, htonl, ntohl, ntohs
33
* #define APR_WANT_STRFUNC
34
* #define APR_WANT_MEMFUNC
35
* #include "apr_want.h"
37
* The appropriate headers will be included.
39
* Note: it is safe to use this in a header (it won't interfere with other
40
* headers' or source files' use of apr_want.h)
44
/* --------------------------------------------------------------------- */
46
#ifdef APR_WANT_STRFUNC
51
#if APR_HAVE_STRINGS_H
55
#undef APR_WANT_STRFUNC
58
/* --------------------------------------------------------------------- */
60
#ifdef APR_WANT_MEMFUNC
66
#undef APR_WANT_MEMFUNC
69
/* --------------------------------------------------------------------- */
80
/* --------------------------------------------------------------------- */
84
#if APR_HAVE_SYS_UIO_H
91
/* --------------------------------------------------------------------- */
93
#ifdef APR_WANT_BYTEFUNC
95
/* Single Unix says they are in arpa/inet.h. Linux has them in
96
* netinet/in.h. FreeBSD has them in arpa/inet.h but requires that
97
* netinet/in.h be included first.
99
#if APR_HAVE_NETINET_IN_H
100
#include <netinet/in.h>
102
#if APR_HAVE_ARPA_INET_H
103
#include <arpa/inet.h>
106
#undef APR_WANT_BYTEFUNC
109
/* --------------------------------------------------------------------- */