From 45890c20cfcc066f9ea264499edf8adfb22e5518 Mon Sep 17 00:00:00 2001 From: Silent Date: Sun, 6 Oct 2019 20:26:31 +0200 Subject: [PATCH] Remove obsolete "Windows compatibility" macros --- Source/Core/Common/CDUtils.cpp | 3 ++- Source/Core/Common/Common.h | 6 ------ Source/Core/Core/PowerPC/Jit64/JitAsm.cpp | 2 ++ 3 files changed, 4 insertions(+), 7 deletions(-) diff --git a/Source/Core/Common/CDUtils.cpp b/Source/Core/Common/CDUtils.cpp index fb67d076c6..559ff0234f 100644 --- a/Source/Core/Common/CDUtils.cpp +++ b/Source/Core/Common/CDUtils.cpp @@ -26,6 +26,7 @@ #include #include #else +#include #include #include #include @@ -211,7 +212,7 @@ bool IsCDROMDevice(std::string device) #ifndef _WIN32 // Resolve symbolic links. This allows symbolic links to valid // drives to be passed from the command line with the -e flag. - char resolved_path[MAX_PATH]; + char resolved_path[PATH_MAX]; char* devname = realpath(device.c_str(), resolved_path); if (!devname) return false; diff --git a/Source/Core/Common/Common.h b/Source/Core/Common/Common.h index eb0944bd8a..81a6e04ea3 100644 --- a/Source/Core/Common/Common.h +++ b/Source/Core/Common/Common.h @@ -30,12 +30,6 @@ struct CrtDebugBreak #endif -// Windows compatibility -#ifndef _WIN32 -#include -#define MAX_PATH PATH_MAX -#endif - #ifdef _MSC_VER #define __getcwd _getcwd #define __chdir _chdir diff --git a/Source/Core/Core/PowerPC/Jit64/JitAsm.cpp b/Source/Core/Core/PowerPC/Jit64/JitAsm.cpp index 1389fb05cc..18ed533c0b 100644 --- a/Source/Core/Core/PowerPC/Jit64/JitAsm.cpp +++ b/Source/Core/Core/PowerPC/Jit64/JitAsm.cpp @@ -4,6 +4,8 @@ #include "Core/PowerPC/Jit64/JitAsm.h" +#include + #include "Common/CommonTypes.h" #include "Common/JitRegister.h" #include "Common/x64ABI.h"