fix: fix the issue with dynamic linking

This commit is contained in:
leejet committed 2024-02-25 21:39:01 +08:00
1 parent 730585d515
commit 4a8190405a
7 files changed
+38 -12

No files matched your search

+1 -1
View File
@@ -175,7 +175,7 @@ std::u32string unicode_value_to_utf32(int unicode_value) {
return utf32_string;
}
std::string sd_basename(const std::string& path) {
static std::string sd_basename(const std::string& path) {
size_t pos = path.find_last_of('/');
if (pos != std::string::npos) {
return path.substr(pos + 1);