diff options
Diffstat (limited to 'src/microhttpd/internal.h')
-rw-r--r-- | src/microhttpd/internal.h | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/src/microhttpd/internal.h b/src/microhttpd/internal.h index adcc43da..3ccc7347 100644 --- a/src/microhttpd/internal.h +++ b/src/microhttpd/internal.h | |||
@@ -153,55 +153,55 @@ | |||
153 | /** | 153 | /** |
154 | * Checks whether the @a d daemon is using select() | 154 | * Checks whether the @a d daemon is using select() |
155 | */ | 155 | */ |
156 | #define MHD_D_USING_SELECT_(d) \ | 156 | #define MHD_D_IS_USING_SELECT_(d) \ |
157 | (0 == (d->options & (MHD_USE_POLL | MHD_USE_EPOLL))) | 157 | (0 == (d->options & (MHD_USE_POLL | MHD_USE_EPOLL))) |
158 | /** | 158 | /** |
159 | * Checks whether the @a d daemon is using poll() | 159 | * Checks whether the @a d daemon is using poll() |
160 | */ | 160 | */ |
161 | #define MHD_D_USING_POLL_(d) (0 != (d->options & MHD_USE_POLL)) | 161 | #define MHD_D_IS_USING_POLL_(d) (0 != ((d)->options & MHD_USE_POLL)) |
162 | /** | 162 | /** |
163 | * Checks whether the @a d daemon is using epoll | 163 | * Checks whether the @a d daemon is using epoll |
164 | */ | 164 | */ |
165 | #define MHD_D_USING_EPOLL_(d) (0 != (d->options & MHD_USE_EPOLL)) | 165 | #define MHD_D_IS_USING_EPOLL_(d) (0 != ((d)->options & MHD_USE_EPOLL)) |
166 | #elif defined(HAVE_POLL) | 166 | #elif defined(HAVE_POLL) |
167 | /** | 167 | /** |
168 | * Checks whether the @a d daemon is using select() | 168 | * Checks whether the @a d daemon is using select() |
169 | */ | 169 | */ |
170 | #define MHD_D_USING_SELECT_(d) (0 == (d->options & MHD_USE_POLL)) | 170 | #define MHD_D_IS_USING_SELECT_(d) (0 == ((d)->options & MHD_USE_POLL)) |
171 | /** | 171 | /** |
172 | * Checks whether the @a d daemon is using poll() | 172 | * Checks whether the @a d daemon is using poll() |
173 | */ | 173 | */ |
174 | #define MHD_D_USING_POLL_(d) (0 != (d->options & MHD_USE_POLL)) | 174 | #define MHD_D_IS_USING_POLL_(d) (0 != ((d)->options & MHD_USE_POLL)) |
175 | /** | 175 | /** |
176 | * Checks whether the @a d daemon is using epoll | 176 | * Checks whether the @a d daemon is using epoll |
177 | */ | 177 | */ |
178 | #define MHD_D_USING_EPOLL_(d) (0) | 178 | #define MHD_D_IS_USING_EPOLL_(d) ((void) (d), 0) |
179 | #elif defined(EPOLL_SUPPORT) | 179 | #elif defined(EPOLL_SUPPORT) |
180 | /** | 180 | /** |
181 | * Checks whether the @a d daemon is using select() | 181 | * Checks whether the @a d daemon is using select() |
182 | */ | 182 | */ |
183 | #define MHD_D_USING_SELECT_(d) (0 == (d->options & MHD_USE_EPOLL)) | 183 | #define MHD_D_IS_USING_SELECT_(d) (0 == ((d)->options & MHD_USE_EPOLL)) |
184 | /** | 184 | /** |
185 | * Checks whether the @a d daemon is using poll() | 185 | * Checks whether the @a d daemon is using poll() |
186 | */ | 186 | */ |
187 | #define MHD_D_USING_POLL_(d) (0) | 187 | #define MHD_D_IS_USING_POLL_(d) ((void) (d), 0) |
188 | /** | 188 | /** |
189 | * Checks whether the @a d daemon is using epoll | 189 | * Checks whether the @a d daemon is using epoll |
190 | */ | 190 | */ |
191 | #define MHD_D_USING_EPOLL_(d) (0 != (d->options & MHD_USE_EPOLL)) | 191 | #define MHD_D_IS_USING_EPOLL_(d) (0 != ((d)->options & MHD_USE_EPOLL)) |
192 | #else /* select() only */ | 192 | #else /* select() only */ |
193 | /** | 193 | /** |
194 | * Checks whether the @a d daemon is using select() | 194 | * Checks whether the @a d daemon is using select() |
195 | */ | 195 | */ |
196 | #define MHD_D_USING_SELECT_(d) (! 0) | 196 | #define MHD_D_IS_USING_SELECT_(d) ((void) (d), ! 0) |
197 | /** | 197 | /** |
198 | * Checks whether the @a d daemon is using poll() | 198 | * Checks whether the @a d daemon is using poll() |
199 | */ | 199 | */ |
200 | #define MHD_D_USING_POLL_(d) (0) | 200 | #define MHD_D_IS_USING_POLL_(d) ((void) (d), 0) |
201 | /** | 201 | /** |
202 | * Checks whether the @a d daemon is using epoll | 202 | * Checks whether the @a d daemon is using epoll |
203 | */ | 203 | */ |
204 | #define MHD_D_USING_EPOLL_(d) (0) | 204 | #define MHD_D_IS_USING_EPOLL_(d) ((void) (d), 0) |
205 | #endif /* select() only */ | 205 | #endif /* select() only */ |
206 | 206 | ||
207 | /** | 207 | /** |