From a01e89c88536bc78eb8b5ef183c1767191c6c349 Mon Sep 17 00:00:00 2001 From: Yann Ylavic Date: Tue, 3 Oct 2017 09:33:17 +0000 Subject: [PATCH] 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 --- test/httpdunit.c | 18 +----------------- 1 file changed, 1 insertion(+), 17 deletions(-) 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" -- 2.50.1