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.
19
* This is the windows specific autoconf-like config file
20
* which unix would create at build time.
28
/* Include the public APR symbols, include our idea of the 'right'
29
* subset of the Windows.h header. This saves us repetition.
34
* Add a _very_few_ declarations missing from the restricted set of headers
35
* (If this list becomes extensive, re-enable the required headers above!)
36
* winsock headers were excluded by WIN32_LEAN_AND_MEAN, so include them now
42
/* For the misc.h late-loaded dynamic symbols, we need some obscure types
43
* Avoid dragging in wtypes.h unless it's absolutely necessary [generally
44
* not with APR itself, until some GUI-related security is introduced.]
59
#if APR_HAVE_SYS_TYPES_H
60
#include <sys/types.h>
70
/* Use this section to define all of the HAVE_FOO_H
71
* that are required to build properly.
73
#define HAVE_LIMITS_H 1
74
#define HAVE_MALLOC_H 1
75
#define HAVE_SIGNAL_H 1
76
/* #define HAVE_STDDEF_H 1 why not? */
77
#define HAVE_STDLIB_H 1
79
#define HAVE_STRICMP 1
80
#define HAVE_STRNICMP 1
86
/* 2 is used for SIGINT on windows */
88
/* 4 is used for SIGILL on windows */
92
/* 8 is used for SIGFPE on windows */
95
/* 11 is used for SIGSEGV on windows */
99
/* 15 is used for SIGTERM on windows */
105
/* 21 is used for SIGBREAK on windows */
106
/* 22 is used for SIGABRT on windows */
117
#define __attribute__(__x)
119
/* APR COMPATABILITY FUNCTIONS
120
* This section should be used to define functions and
121
* macros which are need to make Windows features look
122
* like POSIX features.
124
typedef void (Sigfunc)(int);
126
#define sleep(t) Sleep((t) * 1000)
128
#define SIZEOF_SHORT 2
130
#define SIZEOF_LONGLONG 8
131
#define SIZEOF_CHAR 1
132
#define SIZEOF_SSIZE_T SIZEOF_INT
134
unsigned __stdcall SignalHandling(void *);
135
int thread_ready(void);
137
#if !APR_HAVE_ERRNO_H
138
APR_DECLARE_DATA int errno;
143
#define HAVE_GETADDRINFO 1
144
#define HAVE_GETNAMEINFO 1
147
/* MSVC 7.0 introduced _strtoi64 */
148
#if _MSC_VER >= 1300 && _INTEGRAL_MAX_BITS >= 64
149
#define APR_INT64_STRFN _strtoi64
152
#if APR_HAS_LARGE_FILES
153
#ifdef APR_INT64_STRFN
154
#define APR_OFF_T_STRFN APR_INT64_STRFN
156
#define APR_OFF_T_STRFN apr_strtoi64
159
#define APR_OFF_T_STRFN strtoi
162
/* used to check for DWORD overflow in 64bit compiles */
163
#define APR_DWORD_MAX 0xFFFFFFFFUL
166
* Include common private declarations.
168
#include "../apr_private_common.h"
170
#endif /*APR_PRIVATE_H*/