OSDN Git Service

add some file to compile svnlibdiff
[tortoisegit/TortoiseGitJp.git] / src / TortoiseMerge / svninclude / apr.h
diff --git a/src/TortoiseMerge/svninclude/apr.h b/src/TortoiseMerge/svninclude/apr.h
new file mode 100644 (file)
index 0000000..1e8c2b8
--- /dev/null
@@ -0,0 +1,638 @@
+/* Licensed to the Apache Software Foundation (ASF) under one or more\r
+ * contributor license agreements.  See the NOTICE file distributed with\r
+ * this work for additional information regarding copyright ownership.\r
+ * The ASF licenses this file to You under the Apache License, Version 2.0\r
+ * (the "License"); you may not use this file except in compliance with\r
+ * the License.  You may obtain a copy of the License at\r
+ *\r
+ *     http://www.apache.org/licenses/LICENSE-2.0\r
+ *\r
+ * Unless required by applicable law or agreed to in writing, software\r
+ * distributed under the License is distributed on an "AS IS" BASIS,\r
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+ * See the License for the specific language governing permissions and\r
+ * limitations under the License.\r
+ */\r
+\r
+\r
+#ifndef APR_H\r
+#define APR_H\r
+\r
+/* GENERATED FILE WARNING!  DO NOT EDIT apr.h\r
+ *\r
+ * You must modify apr.hw instead.\r
+ *\r
+ * And please, make an effort to stub apr.hnw and apr.h.in in the process.\r
+ *\r
+ * This is the Win32 specific version of apr.h.  It is copied from\r
+ * apr.hw by the apr.dsp and libapr.dsp projects. \r
+ */\r
+\r
+/**\r
+ * @file apr.h\r
+ * @brief APR Platform Definitions\r
+ * @remark This is a generated header generated from include/apr.h.in by\r
+ * ./configure, or copied from include/apr.hw or include/apr.hnw \r
+ * for Win32 or Netware by those build environments, respectively.\r
+ */\r
+\r
+#if defined(WIN32) || defined(DOXYGEN)\r
+\r
+/* Ignore most warnings (back down to /W3) for poorly constructed headers\r
+ */\r
+#if defined(_MSC_VER) && _MSC_VER >= 1200\r
+#pragma warning(push, 3)\r
+#endif\r
+\r
+/* disable or reduce the frequency of...\r
+ *   C4057: indirection to slightly different base types\r
+ *   C4075: slight indirection changes (unsigned short* vs short[])\r
+ *   C4100: unreferenced formal parameter\r
+ *   C4127: conditional expression is constant\r
+ *   C4163: '_rotl64' : not available as an intrinsic function\r
+ *   C4201: nonstandard extension nameless struct/unions\r
+ *   C4244: int to char/short - precision loss\r
+ *   C4514: unreferenced inline function removed\r
+ */\r
+#pragma warning(disable: 4100 4127 4163 4201 4514; once: 4057 4075 4244)\r
+\r
+/* Ignore Microsoft's interpretation of secure development\r
+ * and the POSIX string handling API\r
+ */\r
+#if defined(_MSC_VER) && _MSC_VER >= 1400\r
+#ifndef _CRT_SECURE_NO_DEPRECATE\r
+#define _CRT_SECURE_NO_DEPRECATE\r
+#endif\r
+#pragma warning(disable: 4996)\r
+#endif\r
+\r
+/* Has windows.h already been included?  If so, our preferences don't matter,\r
+ * but we will still need the winsock things no matter what was included.\r
+ * If not, include a restricted set of windows headers to our tastes.\r
+ */\r
+#ifndef _WINDOWS_\r
+#ifndef WIN32_LEAN_AND_MEAN\r
+#define WIN32_LEAN_AND_MEAN\r
+#endif\r
+#ifndef _WIN32_WINNT\r
+\r
+/* Restrict the server to a subset of Windows XP header files by default\r
+ */\r
+#define _WIN32_WINNT 0x0501\r
+#endif\r
+#ifndef NOUSER\r
+#define NOUSER\r
+#endif\r
+#ifndef NOMCX\r
+#define NOMCX\r
+#endif\r
+#ifndef NOIME\r
+#define NOIME\r
+#endif\r
+#include <windows.h>\r
+/* \r
+ * Add a _very_few_ declarations missing from the restricted set of headers\r
+ * (If this list becomes extensive, re-enable the required headers above!)\r
+ * winsock headers were excluded by WIN32_LEAN_AND_MEAN, so include them now\r
+ */\r
+#define SW_HIDE             0\r
+#ifndef _WIN32_WCE\r
+#include <winsock2.h>\r
+#include <mswsock.h>\r
+#include <ws2tcpip.h>\r
+#include <tlhelp32.h>\r
+#else\r
+#include <winsock.h>\r
+#endif\r
+#endif /* !_WINDOWS_ */\r
+\r
+/**\r
+ * @defgroup APR Apache Portability Runtime library\r
+ * @{\r
+ */\r
+/**\r
+ * @defgroup apr_platform Platform Definitions\r
+ * @{\r
+ * @warning\r
+ * <strong><em>The actual values of macros and typedefs on this page<br>\r
+ * are platform specific and should NOT be relied upon!</em></strong>\r
+ */\r
+\r
+#define APR_INLINE __inline\r
+#define APR_HAS_INLINE          1\r
+#if !defined(__GNUC__) && !defined(__attribute__)\r
+#define __attribute__(__x)\r
+#endif\r
+\r
+#ifndef _WIN32_WCE\r
+#define APR_HAVE_ARPA_INET_H    0\r
+#define APR_HAVE_CONIO_H        1\r
+#define APR_HAVE_CRYPT_H        0\r
+#define APR_HAVE_CTYPE_H        1\r
+#define APR_HAVE_DIRENT_H       0\r
+#define APR_HAVE_ERRNO_H        1\r
+#define APR_HAVE_FCNTL_H        1\r
+#define APR_HAVE_IO_H           1\r
+#define APR_HAVE_LIMITS_H       1\r
+#define APR_HAVE_NETDB_H        0\r
+#define APR_HAVE_NETINET_IN_H   0\r
+#define APR_HAVE_NETINET_SCTP_H 0\r
+#define APR_HAVE_NETINET_SCTP_UIO_H 0\r
+#define APR_HAVE_NETINET_TCP_H  0\r
+#define APR_HAVE_PTHREAD_H      0\r
+#define APR_HAVE_SEMAPHORE_H    0\r
+#define APR_HAVE_SIGNAL_H       1\r
+#define APR_HAVE_STDARG_H       1\r
+#define APR_HAVE_STDINT_H       0\r
+#define APR_HAVE_STDIO_H        1\r
+#define APR_HAVE_STDLIB_H       1\r
+#define APR_HAVE_STRING_H       1\r
+#define APR_HAVE_STRINGS_H      0\r
+#define APR_HAVE_SYS_IOCTL_H    0\r
+#define APR_HAVE_SYS_SENDFILE_H 0\r
+#define APR_HAVE_SYS_SIGNAL_H   0\r
+#define APR_HAVE_SYS_SOCKET_H   0\r
+#define APR_HAVE_SYS_SOCKIO_H   0\r
+#define APR_HAVE_SYS_SYSLIMITS_H 0\r
+#define APR_HAVE_SYS_TIME_H     0\r
+#define APR_HAVE_SYS_TYPES_H    1\r
+#define APR_HAVE_SYS_UIO_H      0\r
+#define APR_HAVE_SYS_UN_H       0\r
+#define APR_HAVE_SYS_WAIT_H     0\r
+#define APR_HAVE_TIME_H         1\r
+#define APR_HAVE_UNISTD_H       0\r
+#define APR_HAVE_STDDEF_H       1\r
+#define APR_HAVE_PROCESS_H      1\r
+#else\r
+#define APR_HAVE_ARPA_INET_H    0\r
+#define APR_HAVE_CONIO_H        0\r
+#define APR_HAVE_CRYPT_H        0\r
+#define APR_HAVE_CTYPE_H        0\r
+#define APR_HAVE_DIRENT_H       0\r
+#define APR_HAVE_ERRNO_H        0\r
+#define APR_HAVE_FCNTL_H        0\r
+#define APR_HAVE_IO_H           0\r
+#define APR_HAVE_LIMITS_H       0\r
+#define APR_HAVE_NETDB_H        0\r
+#define APR_HAVE_NETINET_IN_H   0\r
+#define APR_HAVE_NETINET_SCTP_H 0\r
+#define APR_HAVE_NETINET_SCTP_UIO_H 0\r
+#define APR_HAVE_NETINET_TCP_H  0\r
+#define APR_HAVE_PTHREAD_H      0\r
+#define APR_HAVE_SEMAPHORE_H    0\r
+#define APR_HAVE_SIGNAL_H       0\r
+#define APR_HAVE_STDARG_H       0\r
+#define APR_HAVE_STDINT_H       0\r
+#define APR_HAVE_STDIO_H        1\r
+#define APR_HAVE_STDLIB_H       1\r
+#define APR_HAVE_STRING_H       1\r
+#define APR_HAVE_STRINGS_H      0\r
+#define APR_HAVE_SYS_IOCTL_H    0\r
+#define APR_HAVE_SYS_SENDFILE_H 0\r
+#define APR_HAVE_SYS_SIGNAL_H   0\r
+#define APR_HAVE_SYS_SOCKET_H   0\r
+#define APR_HAVE_SYS_SOCKIO_H   0\r
+#define APR_HAVE_SYS_SYSLIMITS_H 0\r
+#define APR_HAVE_SYS_TIME_H     0\r
+#define APR_HAVE_SYS_TYPES_H    0\r
+#define APR_HAVE_SYS_UIO_H      0\r
+#define APR_HAVE_SYS_UN_H       0\r
+#define APR_HAVE_SYS_WAIT_H     0\r
+#define APR_HAVE_TIME_H         0\r
+#define APR_HAVE_UNISTD_H       0\r
+#define APR_HAVE_STDDEF_H       0\r
+#define APR_HAVE_PROCESS_H      0\r
+#endif\r
+\r
+/** @} */\r
+/** @} */\r
+\r
+/* We don't include our conditional headers within the doxyblocks \r
+ * or the extern "C" namespace \r
+ */\r
+\r
+#if APR_HAVE_STDLIB_H\r
+#include <stdlib.h>\r
+#endif\r
+#if APR_HAVE_STDIO_H\r
+#include <stdio.h>\r
+#endif\r
+#if APR_HAVE_SYS_TYPES_H\r
+#include <sys/types.h>\r
+#endif\r
+#if APR_HAVE_STDDEF_H\r
+#include <stddef.h>\r
+#endif\r
+#if APR_HAVE_TIME_H\r
+#include <time.h>\r
+#endif\r
+#if APR_HAVE_PROCESS_H\r
+#include <process.h>\r
+#endif\r
+\r
+#ifdef __cplusplus\r
+extern "C" {\r
+#endif\r
+\r
+/**\r
+ * @addtogroup apr_platform\r
+ * @ingroup APR \r
+ * @{\r
+ */\r
+\r
+#define APR_HAVE_SHMEM_MMAP_TMP     0\r
+#define APR_HAVE_SHMEM_MMAP_SHM     0\r
+#define APR_HAVE_SHMEM_MMAP_ZERO    0\r
+#define APR_HAVE_SHMEM_SHMGET_ANON  0\r
+#define APR_HAVE_SHMEM_SHMGET       0\r
+#define APR_HAVE_SHMEM_MMAP_ANON    0\r
+#define APR_HAVE_SHMEM_BEOS         0\r
+\r
+#define APR_USE_SHMEM_MMAP_TMP     0\r
+#define APR_USE_SHMEM_MMAP_SHM     0\r
+#define APR_USE_SHMEM_MMAP_ZERO    0\r
+#define APR_USE_SHMEM_SHMGET_ANON  0\r
+#define APR_USE_SHMEM_SHMGET       0\r
+#define APR_USE_SHMEM_MMAP_ANON    0\r
+#define APR_USE_SHMEM_BEOS         0\r
+\r
+#define APR_USE_FLOCK_SERIALIZE           0 \r
+#define APR_USE_POSIXSEM_SERIALIZE        0\r
+#define APR_USE_SYSVSEM_SERIALIZE         0\r
+#define APR_USE_FCNTL_SERIALIZE           0\r
+#define APR_USE_PROC_PTHREAD_SERIALIZE    0 \r
+#define APR_USE_PTHREAD_SERIALIZE         0 \r
+\r
+#define APR_HAS_FLOCK_SERIALIZE           0\r
+#define APR_HAS_SYSVSEM_SERIALIZE         0\r
+#define APR_HAS_POSIXSEM_SERIALIZE        0\r
+#define APR_HAS_FCNTL_SERIALIZE           0\r
+#define APR_HAS_PROC_PTHREAD_SERIALIZE    0\r
+\r
+#define APR_PROCESS_LOCK_IS_GLOBAL        0\r
+\r
+#define APR_HAVE_CORKABLE_TCP   0\r
+#define APR_HAVE_GETRLIMIT      0\r
+#define APR_HAVE_ICONV          0\r
+#define APR_HAVE_IN_ADDR        1\r
+#define APR_HAVE_INET_ADDR      1\r
+#define APR_HAVE_INET_NETWORK   0\r
+#define APR_HAVE_IPV6           0\r
+#define APR_HAVE_MEMMOVE        1\r
+#define APR_HAVE_SETRLIMIT      0\r
+#define APR_HAVE_SIGACTION      0\r
+#define APR_HAVE_SIGSUSPEND     0\r
+#define APR_HAVE_SIGWAIT        0\r
+#define APR_HAVE_STRCASECMP     0\r
+#define APR_HAVE_STRDUP         1\r
+#define APR_HAVE_STRNCASECMP    0\r
+#define APR_HAVE_STRSTR         1\r
+#define APR_HAVE_MEMCHR         1\r
+#define APR_HAVE_STRUCT_RLIMIT  0\r
+#define APR_HAVE_UNION_SEMUN    0\r
+#define APR_HAVE_SCTP           0\r
+#define APR_HAVE_IOVEC          0\r
+\r
+#ifndef _WIN32_WCE\r
+#define APR_HAVE_STRICMP        1\r
+#define APR_HAVE_STRNICMP       1\r
+#else\r
+#define APR_HAVE_STRICMP        0\r
+#define APR_HAVE_STRNICMP       0\r
+#endif\r
+\r
+/*  APR Feature Macros */\r
+#define APR_HAS_SHARED_MEMORY     1\r
+#define APR_HAS_THREADS           1\r
+#define APR_HAS_MMAP              1\r
+#define APR_HAS_FORK              0\r
+#define APR_HAS_RANDOM            1\r
+#define APR_HAS_OTHER_CHILD       1\r
+#define APR_HAS_DSO               1\r
+#define APR_HAS_SO_ACCEPTFILTER   0\r
+#define APR_HAS_UNICODE_FS        1\r
+#define APR_HAS_PROC_INVOKED      1\r
+#define APR_HAS_OS_UUID           1\r
+\r
+#ifndef _WIN32_WCE\r
+#define APR_HAS_SENDFILE          1\r
+#define APR_HAS_USER              1\r
+#define APR_HAS_LARGE_FILES       1\r
+#define APR_HAS_XTHREAD_FILES     1\r
+#define APR_PROCATTR_USER_SET_REQUIRES_PASSWORD 1\r
+#else\r
+#define APR_HAS_SENDFILE          0\r
+#define APR_HAS_USER              0\r
+#define APR_HAS_LARGE_FILES       0\r
+#define APR_HAS_XTHREAD_FILES     0\r
+#define APR_PROCATTR_USER_SET_REQUIRES_PASSWORD 0\r
+#endif\r
+\r
+/* APR sets APR_FILES_AS_SOCKETS to 1 on systems where it is possible\r
+ * to poll on files/pipes.\r
+ */\r
+#define APR_FILES_AS_SOCKETS      0\r
+\r
+/* This macro indicates whether or not EBCDIC is the native character set.\r
+ */\r
+#define APR_CHARSET_EBCDIC        0\r
+\r
+/* If we have a TCP implementation that can be "corked", what flag\r
+ * do we use?\r
+ */\r
+#define APR_TCP_NOPUSH_FLAG       @apr_tcp_nopush_flag@\r
+\r
+/* Is the TCP_NODELAY socket option inherited from listening sockets?\r
+ */\r
+#define APR_TCP_NODELAY_INHERITED 1\r
+\r
+/* Is the O_NONBLOCK flag inherited from listening sockets?\r
+ */\r
+#define APR_O_NONBLOCK_INHERITED  1\r
+\r
+/* Typedefs that APR needs. */\r
+\r
+typedef  unsigned char     apr_byte_t;\r
+\r
+typedef  short             apr_int16_t;\r
+typedef  unsigned short    apr_uint16_t;\r
+\r
+typedef  int               apr_int32_t;\r
+typedef  unsigned int      apr_uint32_t;\r
+\r
+typedef  __int64           apr_int64_t;\r
+typedef  unsigned __int64  apr_uint64_t;\r
+\r
+typedef  size_t      apr_size_t;\r
+#if APR_HAVE_STDDEF_H\r
+typedef  ptrdiff_t   apr_ssize_t;\r
+#else\r
+typedef  int         apr_ssize_t;\r
+#endif\r
+#if APR_HAS_LARGE_FILES\r
+typedef  __int64     apr_off_t;\r
+#else\r
+typedef  int         apr_off_t;\r
+#endif\r
+typedef  int         apr_socklen_t;\r
+typedef  apr_uint64_t      apr_ino_t;\r
+\r
+#ifdef WIN64\r
+#define APR_SIZEOF_VOIDP   8\r
+#else\r
+#define APR_SIZEOF_VOIDP   4\r
+#endif\r
+\r
+#if APR_SIZEOF_VOIDP == 8\r
+typedef  apr_uint64_t            apr_uintptr_t;\r
+#else\r
+typedef  apr_uint32_t            apr_uintptr_t;\r
+#endif\r
+\r
+/* Are we big endian? */\r
+/* XXX: Fatal assumption on Alpha platforms */\r
+#define APR_IS_BIGENDIAN       0\r
+\r
+/* Mechanisms to properly type numeric literals */\r
+\r
+#ifndef __GNUC__\r
+#define APR_INT64_C(val) (val##i64)\r
+#define APR_UINT64_C(val) (val##Ui64)\r
+#else\r
+#define APR_INT64_C(val) (val##LL)\r
+#define APR_UINT64_C(val) (val##ULL)\r
+#endif\r
+\r
+#ifdef INT16_MIN\r
+#define APR_INT16_MIN   INT16_MIN\r
+#else\r
+#define APR_INT16_MIN   (-0x7fff - 1)\r
+#endif\r
+\r
+#ifdef INT16_MAX\r
+#define APR_INT16_MAX  INT16_MAX\r
+#else\r
+#define APR_INT16_MAX   (0x7fff)\r
+#endif\r
+\r
+#ifdef UINT16_MAX\r
+#define APR_UINT16_MAX  UINT16_MAX\r
+#else\r
+#define APR_UINT16_MAX  (0xffff)\r
+#endif\r
+\r
+#ifdef INT32_MIN\r
+#define APR_INT32_MIN   INT32_MIN\r
+#else\r
+#define APR_INT32_MIN   (-0x7fffffff - 1)\r
+#endif\r
+\r
+#ifdef INT32_MAX\r
+#define APR_INT32_MAX  INT32_MAX\r
+#else\r
+#define APR_INT32_MAX  0x7fffffff\r
+#endif\r
+\r
+#ifdef UINT32_MAX\r
+#define APR_UINT32_MAX  UINT32_MAX\r
+#else\r
+#define APR_UINT32_MAX  (0xffffffffU)\r
+#endif\r
+\r
+#ifdef INT64_MIN\r
+#define APR_INT64_MIN   INT64_MIN\r
+#else\r
+#define APR_INT64_MIN   (APR_INT64_C(-0x7fffffffffffffff) - 1)\r
+#endif\r
+\r
+#ifdef INT64_MAX\r
+#define APR_INT64_MAX   INT64_MAX\r
+#else\r
+#define APR_INT64_MAX   APR_INT64_C(0x7fffffffffffffff)\r
+#endif\r
+\r
+#ifdef UINT64_MAX\r
+#define APR_UINT64_MAX  UINT64_MAX\r
+#else\r
+#define APR_UINT64_MAX  APR_UINT64_C(0xffffffffffffffff)\r
+#endif\r
+\r
+#define APR_SIZE_MAX    (~((apr_size_t)0))\r
+\r
+/* Definitions that APR programs need to work properly. */\r
+\r
+/**\r
+ * APR public API wrap for C++ compilers.\r
+ */\r
+#ifdef __cplusplus\r
+#define APR_BEGIN_DECLS     extern "C" {\r
+#define APR_END_DECLS       }\r
+#else\r
+#define APR_BEGIN_DECLS\r
+#define APR_END_DECLS\r
+#endif\r
+\r
+/** \r
+ * Thread callbacks from APR functions must be declared with APR_THREAD_FUNC, \r
+ * so that they follow the platform's calling convention.\r
+ * <PRE>\r
+ *\r
+ * void* APR_THREAD_FUNC my_thread_entry_fn(apr_thread_t *thd, void *data);\r
+ *\r
+ * </PRE>\r
+ */\r
+#define APR_THREAD_FUNC  __stdcall\r
+\r
+\r
+#if defined(DOXYGEN) || !defined(WIN32)\r
+\r
+/**\r
+ * The public APR functions are declared with APR_DECLARE(), so they may\r
+ * use the most appropriate calling convention.  Public APR functions with \r
+ * variable arguments must use APR_DECLARE_NONSTD().\r
+ *\r
+ * @remark Both the declaration and implementations must use the same macro.\r
+ *\r
+ * <PRE>\r
+ * APR_DECLARE(rettype) apr_func(args)\r
+ * </PRE>\r
+ * @see APR_DECLARE_NONSTD @see APR_DECLARE_DATA\r
+ * @remark Note that when APR compiles the library itself, it passes the \r
+ * symbol -DAPR_DECLARE_EXPORT to the compiler on some platforms (e.g. Win32) \r
+ * to export public symbols from the dynamic library build.\n\r
+ * The user must define the APR_DECLARE_STATIC when compiling to target\r
+ * the static APR library on some platforms (e.g. Win32.)  The public symbols \r
+ * are neither exported nor imported when APR_DECLARE_STATIC is defined.\n\r
+ * By default, compiling an application and including the APR public\r
+ * headers, without defining APR_DECLARE_STATIC, will prepare the code to be\r
+ * linked to the dynamic library.\r
+ */\r
+#define APR_DECLARE(type)            type \r
+\r
+/**\r
+ * The public APR functions using variable arguments are declared with \r
+ * APR_DECLARE_NONSTD(), as they must follow the C language calling convention.\r
+ * @see APR_DECLARE @see APR_DECLARE_DATA\r
+ * @remark Both the declaration and implementations must use the same macro.\r
+ * <PRE>\r
+ *\r
+ * APR_DECLARE_NONSTD(rettype) apr_func(args, ...);\r
+ *\r
+ * </PRE>\r
+ */\r
+#define APR_DECLARE_NONSTD(type)     type\r
+\r
+/**\r
+ * The public APR variables are declared with AP_MODULE_DECLARE_DATA.\r
+ * This assures the appropriate indirection is invoked at compile time.\r
+ * @see APR_DECLARE @see APR_DECLARE_NONSTD\r
+ * @remark Note that the declaration and implementations use different forms,\r
+ * but both must include the macro.\r
+ * \r
+ * <PRE>\r
+ *\r
+ * extern APR_DECLARE_DATA type apr_variable;\n\r
+ * APR_DECLARE_DATA type apr_variable = value;\r
+ *\r
+ * </PRE>\r
+ */\r
+#define APR_DECLARE_DATA\r
+\r
+#elif defined(APR_DECLARE_STATIC)\r
+#define APR_DECLARE(type)            type __stdcall\r
+#define APR_DECLARE_NONSTD(type)     type __cdecl\r
+#define APR_DECLARE_DATA\r
+#elif defined(APR_DECLARE_EXPORT)\r
+#define APR_DECLARE(type)            __declspec(dllexport) type __stdcall\r
+#define APR_DECLARE_NONSTD(type)     __declspec(dllexport) type __cdecl\r
+#define APR_DECLARE_DATA             __declspec(dllexport)\r
+#else\r
+#define APR_DECLARE(type)            __declspec(dllimport) type __stdcall\r
+#define APR_DECLARE_NONSTD(type)     __declspec(dllimport) type __cdecl\r
+#define APR_DECLARE_DATA             __declspec(dllimport)\r
+#endif\r
+\r
+#ifdef WIN64\r
+#define APR_SSIZE_T_FMT          "I64d"\r
+#define APR_SIZE_T_FMT           "I64u"\r
+#else\r
+#define APR_SSIZE_T_FMT          "d"\r
+#define APR_SIZE_T_FMT           "u"\r
+#endif\r
+\r
+#if APR_HAS_LARGE_FILES\r
+#define APR_OFF_T_FMT            "I64d"\r
+#else\r
+#define APR_OFF_T_FMT            "d"\r
+#endif\r
+\r
+#define APR_PID_T_FMT            "d"\r
+\r
+#define APR_INT64_T_FMT          "I64d"\r
+#define APR_UINT64_T_FMT         "I64u"\r
+#define APR_UINT64_T_HEX_FMT     "I64x"\r
+\r
+/* No difference between PROC and GLOBAL mutex */\r
+#define APR_PROC_MUTEX_IS_GLOBAL      1\r
+\r
+/* Local machine definition for console and log output. */\r
+#define APR_EOL_STR              "\r\n"\r
+\r
+typedef int apr_wait_t;\r
+\r
+#if APR_HAS_UNICODE_FS\r
+/* An arbitrary size that is digestable. True max is a bit less than 32000 */\r
+#define APR_PATH_MAX 8192\r
+#else /* !APR_HAS_UNICODE_FS */\r
+#define APR_PATH_MAX MAX_PATH\r
+#endif\r
+\r
+#define APR_DSOPATH "PATH"\r
+\r
+/** @} */\r
+\r
+/* Definitions that only Win32 programs need to compile properly. */\r
+\r
+/* XXX These simply don't belong here, perhaps in apr_portable.h\r
+ * based on some APR_HAVE_PID/GID/UID?\r
+ */\r
+#ifndef __GNUC__\r
+typedef  int         pid_t;\r
+#endif\r
+typedef  int         uid_t;\r
+typedef  int         gid_t;\r
+\r
+/* Win32 .h ommissions we really need */\r
+#define STDIN_FILENO  0\r
+#define STDOUT_FILENO 1\r
+#define STDERR_FILENO 2\r
+\r
+#if APR_HAVE_IPV6\r
+\r
+/* Appears in later flavors, not the originals. */\r
+#ifndef in_addr6\r
+#define  in6_addr    in_addr6\r
+#endif\r
+\r
+#ifndef WS2TCPIP_INLINE\r
+#define IN6_IS_ADDR_V4MAPPED(a) \\r
+    (   (*(const apr_uint64_t *)(const void *)(&(a)->s6_addr[0]) == 0) \\r
+     && (*(const apr_uint32_t *)(const void *)(&(a)->s6_addr[8]) == ntohl(0x0000ffff)))\r
+#endif\r
+\r
+#endif /* APR_HAS_IPV6 */\r
+\r
+#ifdef __cplusplus\r
+}\r
+#endif\r
+\r
+/* Done with badly written headers\r
+ */\r
+#if defined(_MSC_VER) && _MSC_VER >= 1200\r
+#pragma warning(pop)\r
+#pragma warning(disable: 4996)\r
+#endif\r
+\r
+#endif /* WIN32 */\r
+\r
+#endif /* APR_H */\r