Skip to content
Permalink
Browse files

Remove obsolete "Windows compatibility" macros

  • Loading branch information
CookiePLMonster committed Oct 6, 2019
1 parent 689378b commit 45890c20cfcc066f9ea264499edf8adfb22e5518
Showing with 4 additions and 7 deletions.
  1. +2 −1 Source/Core/Common/CDUtils.cpp
  2. +0 −6 Source/Core/Common/Common.h
  3. +2 −0 Source/Core/Core/PowerPC/Jit64/JitAsm.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;
@@ -30,12 +30,6 @@ struct CrtDebugBreak

#endif

// Windows compatibility
#ifndef _WIN32
#include <limits.h>
#define MAX_PATH PATH_MAX
#endif

#ifdef _MSC_VER
#define __getcwd _getcwd
#define __chdir _chdir
@@ -4,6 +4,8 @@

#include "Core/PowerPC/Jit64/JitAsm.h"

#include <climits>

#include "Common/CommonTypes.h"
#include "Common/JitRegister.h"
#include "Common/x64ABI.h"

0 comments on commit 45890c2

Please sign in to comment.
You can’t perform that action at this time.