From 15c3e2eae874ae0f317a01c62cc669ecb545e735 Mon Sep 17 00:00:00 2001 From: Josh Cooper Date: Sun, 4 Sep 2022 19:32:42 -0700 Subject: [PATCH] Fixes multi-platform/build support of print line format specifier --- plugins/spectate.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/plugins/spectate.cpp b/plugins/spectate.cpp index 15a881dc1..b0bd190d9 100644 --- a/plugins/spectate.cpp +++ b/plugins/spectate.cpp @@ -21,6 +21,7 @@ #include #include #include +#include DFHACK_PLUGIN("spectate"); DFHACK_PLUGIN_IS_ENABLED(enabled); @@ -247,7 +248,7 @@ command_result spectate (color_ostream &out, std::vector & paramet } } else { out.print("Spectate is %s\n", enabled ? "ENABLED." : "DISABLED."); - out.print("tick-threshold: %lu\n", tick_threshold); + out.print("tick-threshold: %" PRIu64 "\n", tick_threshold); out.print("focus-jobs: %s\n", focus_jobs_enabled ? "on." : "off."); out.print("auto-unpause: %s\n", unpause_enabled ? "on." : "off."); out.print("auto-disengage: %s\n", disengage_enabled ? "on." : "off.");