HostInterface: Fix compile error on Linux

This commit is contained in:
Connor McLaughlin 2020-01-04 15:25:15 +10:00
parent d88fc20434
commit 0590f0935c

View file

@ -12,6 +12,8 @@
#include "spu.h" #include "spu.h"
#include "system.h" #include "system.h"
#include "timers.h" #include "timers.h"
#include <cstring>
#include <cmath>
#include <imgui.h> #include <imgui.h>
Log_SetChannel(HostInterface); Log_SetChannel(HostInterface);
@ -23,8 +25,6 @@ Log_SetChannel(HostInterface);
#if defined(ANDROID) || (defined(__GNUC__) && __GNUC__ < 8) #if defined(ANDROID) || (defined(__GNUC__) && __GNUC__ < 8)
#include <cstring>
static std::string GetRelativePath(const std::string& path, const char* new_filename) static std::string GetRelativePath(const std::string& path, const char* new_filename)
{ {
const char* last = std::strrchr(path.c_str(), '/'); const char* last = std::strrchr(path.c_str(), '/');