]> granicus.if.org Git - apache/commitdiff
httpdunit: include .h to avoid code duplication.
authorYann Ylavic <ylavic@apache.org>
Tue, 3 Oct 2017 09:33:17 +0000 (09:33 +0000)
committerYann Ylavic <ylavic@apache.org>
Tue, 3 Oct 2017 09:33:17 +0000 (09:33 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1810761 13f79535-47bb-0310-9956-ffa450edef68

test/httpdunit.c

index 116f045f9c650acd25d64c7adefaba87ea8aa20b..a4474a2cc0c6e316db55915f1c6acd5b2cbee92a 100644 (file)
  * 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"