00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023 #ifdef WIN32
00024
00025 #ifndef APR_PRIVATE_H
00026 #define APR_PRIVATE_H
00027
00028
00029
00030
00031 #include "apr.h"
00032
00033
00034
00035
00036
00037
00038 #ifndef SW_HIDE
00039 #define SW_HIDE 0
00040 #endif
00041
00042
00043
00044
00045
00046 #ifndef _WIN32_WCE
00047 #define HAVE_ACLAPI 1
00048 #ifdef __wtypes_h__
00049 #include <accctrl.h>
00050 #else
00051 #define __wtypes_h__
00052 #include <accctrl.h>
00053 #undef __wtypes_h__
00054 #endif
00055 #else
00056 #define HAVE_ACLAPI 0
00057 #endif
00058
00059 #if APR_HAVE_SYS_TYPES_H
00060 #include <sys/types.h>
00061 #endif
00062 #if APR_HAVE_STDDEF_H
00063 #include <stddef.h>
00064 #endif
00065 #include <stdio.h>
00066 #if APR_HAVE_TIME_H
00067 #include <time.h>
00068 #endif
00069
00070
00071
00072
00073 #define HAVE_LIMITS_H 1
00074 #define HAVE_MALLOC_H 1
00075 #define HAVE_SIGNAL_H 1
00076
00077 #define HAVE_STDLIB_H 1
00078
00079 #define HAVE_STRICMP 1
00080 #define HAVE_STRNICMP 1
00081 #define HAVE_STRDUP 1
00082 #define HAVE_STRSTR 1
00083 #define HAVE_MEMCHR 1
00084
00085 #define SIGHUP 1
00086
00087 #define SIGQUIT 3
00088
00089 #define SIGTRAP 5
00090 #define SIGIOT 6
00091 #define SIGBUS 7
00092
00093 #define SIGKILL 9
00094 #define SIGUSR1 10
00095
00096 #define SIGUSR2 12
00097 #define SIGPIPE 13
00098 #define SIGALRM 14
00099
00100 #define SIGSTKFLT 16
00101 #define SIGCHLD 17
00102 #define SIGCONT 18
00103 #define SIGSTOP 19
00104 #define SIGTSTP 20
00105
00106
00107 #define SIGTTIN 23
00108 #define SIGTTOU 24
00109 #define SIGURG 25
00110 #define SIGXCPU 26
00111 #define SIGXFSZ 27
00112 #define SIGVTALRM 28
00113 #define SIGPROF 29
00114 #define SIGWINCH 30
00115 #define SIGIO 31
00116
00117 #define __attribute__(__x)
00118
00119
00120
00121
00122
00123
00124 typedef void (Sigfunc)(int);
00125
00126 #define sleep(t) Sleep((t) * 1000)
00127
00128 #define SIZEOF_SHORT 2
00129 #define SIZEOF_INT 4
00130 #define SIZEOF_LONGLONG 8
00131 #define SIZEOF_CHAR 1
00132 #define SIZEOF_SSIZE_T SIZEOF_INT
00133
00134 unsigned __stdcall SignalHandling(void *);
00135 int thread_ready(void);
00136
00137 #if !APR_HAVE_ERRNO_H
00138 APR_DECLARE_DATA int errno;
00139 #define ENOSPC 1
00140 #endif
00141
00142 #if APR_HAVE_IPV6
00143 #define HAVE_GETADDRINFO 1
00144 #define HAVE_GETNAMEINFO 1
00145 #endif
00146
00147
00148 #if _MSC_VER >= 1300 && _INTEGRAL_MAX_BITS >= 64
00149 #define APR_INT64_STRFN _strtoi64
00150 #endif
00151
00152 #if APR_HAS_LARGE_FILES
00153 #ifdef APR_INT64_STRFN
00154 #define APR_OFF_T_STRFN APR_INT64_STRFN
00155 #else
00156 #define APR_OFF_T_STRFN apr_strtoi64
00157 #endif
00158 #else
00159 #define APR_OFF_T_STRFN strtoi
00160 #endif
00161
00162
00163 #define APR_DWORD_MAX 0xFFFFFFFFUL
00164
00165
00166
00167
00168 #include "../apr_private_common.h"
00169
00170 #endif
00171 #endif