From 5428d6acc37e33802b0b66b2f9cdc0a37dd36429 Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Sun, 28 Jul 2019 11:28:36 -0700 Subject: Clean up includes a bit Trying out the IWYU tool to only include what's necessary in a given file. Seems to work decently (it'll miss some headers, suggest unnecessary ones, and make nonsense suggestions for some things, but overall gives a good starting point), and helps clean out some headers. --- Alc/helpers.cpp | 35 ++++++++++------------------------- 1 file changed, 10 insertions(+), 25 deletions(-) (limited to 'Alc/helpers.cpp') diff --git a/Alc/helpers.cpp b/Alc/helpers.cpp index ee0bb2dc..9f6283a3 100644 --- a/Alc/helpers.cpp +++ b/Alc/helpers.cpp @@ -28,14 +28,15 @@ #include "config.h" -#include -#include +#include #include #include -#include -#ifdef HAVE_MALLOC_H -#include -#endif +#include +#include +#include +#include +#include + #ifdef HAVE_DIRENT_H #include #endif @@ -95,35 +96,19 @@ DEFINE_PROPERTYKEY(PKEY_AudioEndpoint_GUID, 0x1da5d803, 0xd492, 0x4edd, 0x8c, 0x #ifdef HAVE_SYS_SYSCONF_H #include #endif -#ifdef HAVE_FLOAT_H -#include -#endif -#ifdef HAVE_IEEEFP_H -#include -#endif #ifndef _WIN32 -#include -#include -#include -#include #include #elif defined(_WIN32_IE) #include #endif -#include -#include -#include -#include - #include "alMain.h" -#include "alu.h" +#include "almalloc.h" +#include "compat.h" #include "cpu_caps.h" #include "fpu_modes.h" -#include "vector.h" -#include "compat.h" -#include "threads.h" +#include "logging.h" #if defined(HAVE_GCC_GET_CPUID) && (defined(__i386__) || defined(__x86_64__) || \ -- cgit v1.2.3