From 2342d9b7f6b80aa512c02f91e63abe23108d8503 Mon Sep 17 00:00:00 2001 From: Bruno Raoult Date: Wed, 11 Aug 2021 15:52:27 +0200 Subject: [PATCH] templates: move includes from ex.c to ex.h --- c/templates/ex.c | 7 ------- c/templates/ex.h | 4 ++++ 2 files changed, 4 insertions(+), 7 deletions(-) diff --git a/c/templates/ex.c b/c/templates/ex.c index 77ed3e1..75204ee 100644 --- a/c/templates/ex.c +++ b/c/templates/ex.c @@ -1,13 +1,6 @@ /* See GNUmakefile below for explanation * https://github.com/braoult/exercism/blob/master/c/templates/GNUmakefile */ -#if defined UNIT_TEST || defined DEBUG -#include -#include -#endif - - - #ifdef UNIT_TEST int main(int ac, char **av) { diff --git a/c/templates/ex.h b/c/templates/ex.h index 63a0c42..3c82085 100644 --- a/c/templates/ex.h +++ b/c/templates/ex.h @@ -1,6 +1,10 @@ /* See GNUmakefile below for explanation * https://github.com/braoult/exercism/blob/master/c/templates/GNUmakefile */ +#if defined UNIT_TEST || defined DEBUG +#include +#include +#endif #ifdef TESTALL #undef TEST_IGNORE #define TEST_IGNORE() {}