From 152af8685f9440d725ccf497a1ca2346e2fb2cc5 Mon Sep 17 00:00:00 2001 From: Brombrom Hani <190221485+brombrom-hani@users.noreply.github.com> Date: Mon, 23 Jun 2025 13:09:20 +0200 Subject: [PATCH] Remove percent_encode from the compilation on windows --- src/hll/SystemService.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/hll/SystemService.c b/src/hll/SystemService.c index 35e5abe..7f3888b 100644 --- a/src/hll/SystemService.c +++ b/src/hll/SystemService.c @@ -295,6 +295,7 @@ static bool SystemService_IsExistPlayingManual(void) { return exists; } +#ifndef _WIN32 static char *percent_encode(const char *str) { const char *hex = "0123456789ABCDEF"; // Worst case all characters are percent-encoded @@ -318,6 +319,7 @@ static char *percent_encode(const char *str) { *p = '\0'; return encoded; } +#endif static void SystemService_OpenPlayingManual(void) { if (!SystemService_IsExistPlayingManual()) { @@ -332,7 +334,6 @@ static void SystemService_OpenPlayingManual(void) { return; } - #ifdef _WIN32 const char *prefix = "file:///"; char *path_component = real_path;