From: Yann Ylavic Date: Tue, 3 Oct 2017 09:33:17 +0000 (+0000) Subject: httpdunit: include .h to avoid code duplication. X-Git-Tag: 2.5.0-alpha~69 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=a01e89c88536bc78eb8b5ef183c1767191c6c349;p=apache httpdunit: include .h to avoid code duplication. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1810761 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/test/httpdunit.c b/test/httpdunit.c index 116f045f9c..a4474a2cc0 100644 --- a/test/httpdunit.c +++ b/test/httpdunit.c @@ -14,23 +14,7 @@ * limitations under the License. */ -#include "apr.h" /* for pid_t on Windows, needed by Check */ - -#if defined(__GNUC__) -#pragma GCC diagnostic push -#pragma GCC diagnostic ignored "-Wstrict-prototypes" -#elif defined(__clang__) -#pragma clang diagnostic push -#pragma clang diagnostic ignored "-Wstrict-prototypes" -#endif - -#include "check.h" - -#if defined(__GNUC__) -#pragma GCC diagnostic pop -#elif defined(__clang__) -#pragma clang diagnostic pop -#endif +#include "httpdunit.h" #include "apr_general.h"