From 45890c20cfcc066f9ea264499edf8adfb22e5518 Mon Sep 17 00:00:00 2001 From: Silent Date: Sun, 6 Oct 2019 20:26:31 +0200 Subject: Remove obsolete "Windows compatibility" macros --- Source/Core/Common/CDUtils.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'Source/Core/Common/CDUtils.cpp') 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; -- cgit v1.2.3