Remove dead code

This commit is contained in:
ζeh Matt 2023-06-30 17:13:35 +03:00
parent 69d5e0b280
commit 99aea9dba8
No known key found for this signature in database
GPG Key ID: 18CE582C71A225B0
2 changed files with 0 additions and 19 deletions

View File

@ -56,10 +56,6 @@ using colour_t = uint8_t;
#endif // defined(__unix__) || (defined(__APPLE__) && defined(__MACH__))
#ifdef _WIN32
char* strndup(const char* src, size_t size);
#endif
// BSD and macOS have MAP_ANON instead of MAP_ANONYMOUS
#ifndef MAP_ANONYMOUS
# define MAP_ANONYMOUS MAP_ANON

View File

@ -47,21 +47,6 @@ static constexpr wchar_t SINGLE_INSTANCE_MUTEX_NAME[] = L"RollerCoaster Tycoon 2
# define SOFTWARE_CLASSES L"Software\\Classes"
# define MUI_CACHE L"Local Settings\\Software\\Microsoft\\Windows\\Shell\\MuiCache"
char* strndup(const char* src, size_t size)
{
size_t len = strnlen(src, size);
char* dst = reinterpret_cast<char*>(malloc(len + 1));
if (dst == nullptr)
{
return nullptr;
}
dst = reinterpret_cast<char*>(std::memcpy(dst, src, len));
dst[len] = '\0';
return dst;
}
namespace Platform
{
static std::string WIN32_GetKnownFolderPath(REFKNOWNFOLDERID rfid);