diff options
| author | Silent <zdanio95@gmail.com> | 2019-10-06 20:26:31 +0200 |
|---|---|---|
| committer | Silent <zdanio95@gmail.com> | 2019-10-07 22:46:37 +0200 |
| commit | 45890c20cfcc066f9ea264499edf8adfb22e5518 (patch) | |
| tree | 701c7d64f590adab9a11fa560d91c87142caa504 /Source/Core/Common/CDUtils.cpp | |
| parent | 689378b435c73b624cfdea8fe971db6b1d72c48e (diff) | |
Remove obsolete "Windows compatibility" macros
Diffstat (limited to 'Source/Core/Common/CDUtils.cpp')
| -rw-r--r-- | Source/Core/Common/CDUtils.cpp | 3 |
1 files changed, 2 insertions, 1 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 <IOKit/storage/IOMedia.h> #include <paths.h> #else +#include <climits> #include <fcntl.h> #include <sys/ioctl.h> #include <sys/stat.h> @@ -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; |
