From 956281bf601e9d1cf68bed6c6872d23d4f0ba7c7 Mon Sep 17 00:00:00 2001 From: GabrielHNE Date: Mon, 13 Apr 2020 00:55:48 -0300 Subject: [PATCH 1/2] Added #ifnedf GLL_H --- src/gll.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/gll.h b/src/gll.h index 9eb97d7..bc182db 100644 --- a/src/gll.h +++ b/src/gll.h @@ -6,6 +6,10 @@ /* * Node Type: gll_node_t struct */ + +#ifndef GLL_H +#define GLL_H + typedef struct node_t { void *data; struct node_t *prev; @@ -49,3 +53,4 @@ void gll_eachReverse(gll_t *, void (*f)(void *)); void gll_clear(gll_t *); void gll_destroy(gll_t *); +#endif //GLL_H \ No newline at end of file From b8e2bb22e66c5623af5722749177c405dfd8242b Mon Sep 17 00:00:00 2001 From: GabrielHNE Date: Mon, 13 Apr 2020 00:57:25 -0300 Subject: [PATCH 2/2] Fixed the path of gll.h file --- performance.c | 2 +- src/gll.c | 2 +- tests.c | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/performance.c b/performance.c index 0f46213..f0ab098 100644 --- a/performance.c +++ b/performance.c @@ -1,7 +1,7 @@ #include #include #include -#include "src/gll.h" +#include "./src/gll.h" static float start(); static void stop(float); diff --git a/src/gll.c b/src/gll.c index 5bc024a..0f417cc 100644 --- a/src/gll.c +++ b/src/gll.c @@ -5,7 +5,7 @@ #include #include -#include "gll.h" +#include "./gll.h" #define C_OK 0 #define C_NOK -1 diff --git a/tests.c b/tests.c index 5ddfcf5..66a8bcf 100644 --- a/tests.c +++ b/tests.c @@ -3,7 +3,7 @@ #include #include #include -#include "src/gll.h" +#include "./src/gll.h" #define MAX_STR 32 #define C_OK 0