Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
in all the graphs.
*/
+#include <stdint.h>
+
// Include colors
#include "../colors.h"
#define EOL "\\j"
// Returns the string or an empty string
-#define CONSTANT_OR_EMPTY(s, constant) (s) ? constant : ""
-#define MAYBE_EMPTY(s) (s) ? s : ""
+#define CONSTANT_OR_EMPTY(s, constant) ((uintptr_t)(s)) ? constant : ""
+#define MAYBE_EMPTY(s) ((uintptr_t)(s)) ? s : ""
// Format literal for the field name with an optional object
#define FIELD "%s%s%s"