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. --- cpu.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'cpu.c') diff --git a/cpu.c b/cpu.c index f73e235..94dd4c5 100644 --- a/cpu.c +++ b/cpu.c @@ -3,7 +3,7 @@ #include #include -#include "cpu.h" +#include "collector.h" #include "util.h" // limits for CPU numbers -- cgit 1.4.1