templates: move includes from ex.c to ex.h

This commit is contained in:
2021-08-11 15:52:27 +02:00
parent 31cd75c5a9
commit 2342d9b7f6
2 changed files with 4 additions and 7 deletions

View File

@@ -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 <stdio.h>
#include <stdlib.h>
#endif
#ifdef UNIT_TEST
int main(int ac, char **av)
{

View File

@@ -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 <stdio.h>
#include <stdlib.h>
#endif
#ifdef TESTALL
#undef TEST_IGNORE
#define TEST_IGNORE() {}