Remove percent_encode from the compilation on windows

This commit is contained in:
Brombrom Hani
2025-06-23 13:09:20 +02:00
parent c5d6afdd08
commit 152af8685f
+2 -1
View File
@@ -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;