debug: move some stuff to utils/debug

The rationale is to separate the config.h-dependent stuff to a separate
file to eliminate the need to transitively include config.h.

+ fix the files that need config.h directly to include it
This commit is contained in:
Martin Pulec
2024-11-28 11:03:02 +01:00
parent cac114d6e5
commit abd758241a
20 changed files with 102 additions and 19 deletions

View File

@@ -39,6 +39,9 @@
* SUCH DAMAGE.
*/
#include "debug.h"
#include "utils/debug.h"
#ifdef HAVE_CONFIG_H
#include "config.h"
#endif // defined HAVE_CONFIG_H
@@ -52,7 +55,6 @@
#include <string_view>
#include <unordered_map>
#include "debug.h"
#include "host.h"
#include "utils/color_out.h"
#include "utils/string_view_utils.hpp"