From 10b8a1b3c74b00da1efb16d92b3fd78a7e53e829 Mon Sep 17 00:00:00 2001 From: lizzie Date: Fri, 14 Aug 2026 00:11:57 +0000 Subject: [PATCH] no way --- src/common/program_args.cpp | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/common/program_args.cpp b/src/common/program_args.cpp index 8ee2211da7..f1eafd3b68 100644 --- a/src/common/program_args.cpp +++ b/src/common/program_args.cpp @@ -8,6 +8,13 @@ #include "common/scm_rev.h" #include "network/room.h" +#ifdef _WIN32 +// windows.h needs to be included before shellapi.h +#include +#include +#include "common/windows/timer_resolution.h" +#endif + #undef _UNICODE #include #ifndef _MSC_VER @@ -126,7 +133,7 @@ int ParseArguments(ProgramArguments& args, int argc, char *argv[]) { } // Preserves drag and drop functionality (i.e ./eden ) - char *endarg = nullptr; + [[maybe_unused]] char *endarg = nullptr; while (optind < argc) { int arg = getopt_long(argc, argv, "g:fhvcip::c:u:d:", long_options, &option_index); if (arg != -1) {