From 3509dc92b07c95d47aada5bd8656132ef842371a Mon Sep 17 00:00:00 2001 From: Heikki Kallasjoki Date: Fri, 30 Nov 2018 11:51:58 +0000 Subject: Refactor to allow excluding collectors from the build. Stop including hardcoded links to all collectors from main.c. Instead, use a preprocessor X-macro "XCOLLECTORS" to take the list of collectors, and use that to declare the external "struct collector" objects and the list of collectors. --- filesystem.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'filesystem.c') diff --git a/filesystem.c b/filesystem.c index 84f6805..cbc98ff 100644 --- a/filesystem.c +++ b/filesystem.c @@ -3,7 +3,7 @@ #include #include -#include "filesystem.h" +#include "collector.h" #include "util.h" // size of input buffer for paths and lines -- cgit 1.4.1