1 /* Licensed to the Apache Software Foundation (ASF) under one or more
2 * contributor license agreements. See the NOTICE file distributed with
3 * this work for additional information regarding copyright ownership.
4 * The ASF licenses this file to You under the Apache License, Version 2.0
5 * (the "License"); you may not use this file except in compliance with
6 * the License. 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 /* APR COMPATABILITY FUNCTIONS
118 * This section should be used to define functions and
119 * macros which are need to make Windows features look
120 * like POSIX features.
122 typedef void (Sigfunc)(int);
124 #define sleep(t) Sleep((t) * 1000)
126 #define SIZEOF_SHORT 2
128 #define SIZEOF_LONGLONG 8
129 #define SIZEOF_CHAR 1
130 #define SIZEOF_SSIZE_T SIZEOF_INT
132 unsigned __stdcall SignalHandling(void *);
133 int thread_ready(void);
135 #if !APR_HAVE_ERRNO_H
136 APR_DECLARE_DATA int errno;
141 #define HAVE_GETADDRINFO 1
142 #define HAVE_GETNAMEINFO 1
146 * Include common private declarations.
148 #include "../apr_private_common.h"
150 #endif /*APR_PRIVATE_H*/