From 69deb8019035f9b8ba6d9860fc9f682a400a4648 Mon Sep 17 00:00:00 2001 From: Jeff Trawick Date: Sat, 3 Oct 2015 14:55:43 +0000 Subject: [PATCH] Follow-up to r1702948: APR_HAVE_foo is checked via #if, not #ifdef (since it should always be defined, to either 0 or 1) This fixes a compile error on Windows introduced by r1702948 as well as straightens up two long-time glitches. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1706595 13f79535-47bb-0310-9956-ffa450edef68 --- include/scoreboard.h | 2 +- modules/filters/regexp.c | 2 +- modules/ssl/ssl_private.h | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/include/scoreboard.h b/include/scoreboard.h index f5cf939de7..5200c30a5d 100644 --- a/include/scoreboard.h +++ b/include/scoreboard.h @@ -26,7 +26,7 @@ extern "C" { #endif -#ifdef APR_HAVE_SYS_TIME_H +#if APR_HAVE_SYS_TIME_H #include #include #endif diff --git a/modules/filters/regexp.c b/modules/filters/regexp.c index ba118a6552..4acccca676 100644 --- a/modules/filters/regexp.c +++ b/modules/filters/regexp.c @@ -30,7 +30,7 @@ #include "apr.h" #include "apr_lib.h" -#ifdef APR_HAVE_LIMITS_H +#if APR_HAVE_LIMITS_H #include #endif #if APR_HAVE_STDLIB_H diff --git a/modules/ssl/ssl_private.h b/modules/ssl/ssl_private.h index bc822235cf..cfdabd78f3 100644 --- a/modules/ssl/ssl_private.h +++ b/modules/ssl/ssl_private.h @@ -57,7 +57,7 @@ /* The #ifdef macros are only defined AFTER including the above * therefore we cannot include these system files at the top :-( */ -#ifdef APR_HAVE_STDLIB_H +#if APR_HAVE_STDLIB_H #include #endif #if APR_HAVE_SYS_TIME_H -- 2.40.0