From f073450eddbf6252fdf1c8cb4c678e770458f8c7 Mon Sep 17 00:00:00 2001 From: "Pawel \"l0ner\" Soltys" Date: Mon, 12 Jan 2015 15:57:41 +0100 Subject: [PATCH] OSX: removed useless includes --- osx/cpu.cc | 13 ++----------- osx/load.cc | 1 + osx/memory.cc | 11 +---------- 3 files changed, 4 insertions(+), 21 deletions(-) diff --git a/osx/cpu.cc b/osx/cpu.cc index 71aaa3a..5f92aa3 100644 --- a/osx/cpu.cc +++ b/osx/cpu.cc @@ -1,17 +1,8 @@ -#include -#include -#include -#include -#include -#include -#include -#include #include -#include // for sysctl -#include // for integer types - #include // usleep() +#include "cpu.h" + // OSX or BSD based system, use BSD APIs instead // See: http://www.opensource.apple.com/source/xnu/xnu-201/osfmk/mach/host_info.h // and: http://web.mit.edu/darwin/src/modules/xnu/osfmk/man/ diff --git a/osx/load.cc b/osx/load.cc index cea49cc..5469f46 100644 --- a/osx/load.cc +++ b/osx/load.cc @@ -6,6 +6,7 @@ #include #include // getloadavg() +#include "load.h" #include "../luts.h" std::string load_string( bool use_colors = false ) { diff --git a/osx/memory.cc b/osx/memory.cc index 1bac364..0c2f8e1 100644 --- a/osx/memory.cc +++ b/osx/memory.cc @@ -1,18 +1,9 @@ #include #include - -#include -#include -#include -#include -#include -#include -#include -#include #include #include // for sysctl -#include // for integer types +#include "memory.h" #include "../luts.h" std::string mem_string( bool use_colors ) {