color_out.h: do not include macros.h

Included with debug.h (for logger) so it would leak the definitions to
almost all compilation units.

Just STRINGIFY is required so rather make a local copy of the macro
(prefixed COLOR_OUT).

+ include macro.h in files that should include that but didn't include
it directly
This commit is contained in:
Martin Pulec
2026-01-20 11:20:22 +01:00
parent d0c3cde8ef
commit 728ec40195
10 changed files with 17 additions and 9 deletions

View File

@@ -8,7 +8,7 @@
* Jerry Isdale
*
* Copyright (c) 1995-2000 University College London
* Copyright (c) 2005-2023 CESNET, z. s. p. o.
* Copyright (c) 2005-2026 CESNET, zájmové sdružení právnických osob
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
@@ -58,6 +58,7 @@
#include "host.h"
#include "utils/color_out.h"
#include "utils/string_view_utils.hpp"
#include "utils/macros.h" // for STR_LEN, snprintf_ch
#include "utils/misc.h" // ug_strerror
using std::atomic;