mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-06-02 16:32:55 +00:00
Remove obsolete "Windows compatibility" macros
This commit is contained in:
parent
689378b435
commit
45890c20cf
3 changed files with 4 additions and 7 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue