Main Page | Modules | Data Structures | File List | Data Fields | Globals | Related Pages

apr_want.h

Go to the documentation of this file.
00001 /* Copyright 2000-2004 The Apache Software Foundation 00002 * 00003 * Licensed under the Apache License, Version 2.0 (the "License"); 00004 * you may not use this file except in compliance with the License. 00005 * You may obtain a copy of the License at 00006 * 00007 * http://www.apache.org/licenses/LICENSE-2.0 00008 * 00009 * Unless required by applicable law or agreed to in writing, software 00010 * distributed under the License is distributed on an "AS IS" BASIS, 00011 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 00012 * See the License for the specific language governing permissions and 00013 * limitations under the License. 00014 */ 00015 00016 #include "apr.h" /* configuration data */ 00017 /** 00018 * @file apr_want.h 00019 * @brief APR Standard Headers Support 00020 * 00021 * <PRE> 00022 * Features: 00023 * 00024 * APR_WANT_STRFUNC: strcmp, strcat, strcpy, etc 00025 * APR_WANT_MEMFUNC: memcmp, memcpy, etc 00026 * APR_WANT_STDIO: <stdio.h> and related bits 00027 * APR_WANT_IOVEC: struct iovec 00028 * APR_WANT_BYTEFUNC: htons, htonl, ntohl, ntohs 00029 * 00030 * Typical usage: 00031 * 00032 * #define APR_WANT_STRFUNC 00033 * #define APR_WANT_MEMFUNC 00034 * #include "apr_want.h" 00035 * 00036 * The appropriate headers will be included. 00037 * 00038 * Note: it is safe to use this in a header (it won't interfere with other 00039 * headers' or source files' use of apr_want.h) 00040 * </PRE> 00041 */ 00042 00043 /* --------------------------------------------------------------------- */ 00044 00045 #ifdef APR_WANT_STRFUNC 00046 00047 #if APR_HAVE_STRING_H 00048 #include <string.h> 00049 #endif 00050 #if APR_HAVE_STRINGS_H 00051 #include <strings.h> 00052 #endif 00053 00054 #undef APR_WANT_STRFUNC 00055 #endif 00056 00057 /* --------------------------------------------------------------------- */ 00058 00059 #ifdef APR_WANT_MEMFUNC 00060 00061 #if APR_HAVE_STRING_H 00062 #include <string.h> 00063 #endif 00064 00065 #undef APR_WANT_MEMFUNC 00066 #endif 00067 00068 /* --------------------------------------------------------------------- */ 00069 00070 #ifdef APR_WANT_STDIO 00071 00072 #if APR_HAVE_STDIO_H 00073 #include <stdio.h> 00074 #endif 00075 00076 #undef APR_WANT_STDIO 00077 #endif 00078 00079 /* --------------------------------------------------------------------- */ 00080 00081 #ifdef APR_WANT_IOVEC 00082 00083 #if APR_HAVE_SYS_UIO_H 00084 #include <sys/uio.h> 00085 #endif 00086 00087 #undef APR_WANT_IOVEC 00088 #endif 00089 00090 /* --------------------------------------------------------------------- */ 00091 00092 #ifdef APR_WANT_BYTEFUNC 00093 00094 /* Single Unix says they are in arpa/inet.h. Linux has them in 00095 * netinet/in.h. FreeBSD has them in arpa/inet.h but requires that 00096 * netinet/in.h be included first. 00097 */ 00098 #if APR_HAVE_NETINET_IN_H 00099 #include <netinet/in.h> 00100 #endif 00101 #if APR_HAVE_ARPA_INET_H 00102 #include <arpa/inet.h> 00103 #endif 00104 00105 #undef APR_WANT_BYTEFUNC 00106 #endif 00107 00108 /* --------------------------------------------------------------------- */

Generated on Thu Sep 16 13:47:10 2004 for Apache Portable Runtime by doxygen 1.3.7