summaryrefslogtreecommitdiffstats
path: root/src/common/platform.h
diff options
context:
space:
mode:
authorYuri Kunde Schlesner <yuriks@yuriks.net>2015-05-07 03:59:59 +0200
committerYuri Kunde Schlesner <yuriks@yuriks.net>2015-05-07 04:50:08 +0200
commitbf12f270b3c74f694c789a57cc69f414753ca080 (patch)
treea80e6ee9863a46966fe43496f1ccbbfa07cc98aa /src/common/platform.h
parentClean-up includes (diff)
downloadyuzu-bf12f270b3c74f694c789a57cc69f414753ca080.tar
yuzu-bf12f270b3c74f694c789a57cc69f414753ca080.tar.gz
yuzu-bf12f270b3c74f694c789a57cc69f414753ca080.tar.bz2
yuzu-bf12f270b3c74f694c789a57cc69f414753ca080.tar.lz
yuzu-bf12f270b3c74f694c789a57cc69f414753ca080.tar.xz
yuzu-bf12f270b3c74f694c789a57cc69f414753ca080.tar.zst
yuzu-bf12f270b3c74f694c789a57cc69f414753ca080.zip
Diffstat (limited to '')
-rw-r--r--src/common/platform.h40
1 files changed, 0 insertions, 40 deletions
diff --git a/src/common/platform.h b/src/common/platform.h
index e27d6e31f..fc680d549 100644
--- a/src/common/platform.h
+++ b/src/common/platform.h
@@ -66,45 +66,5 @@
////////////////////////////////////////////////////////////////////////////////////////////////////
// Compiler-Specific Definitions
-#if EMU_PLATFORM == PLATFORM_WINDOWS
-
-#include <time.h>
-
-#ifndef NOMINMAX
-#define NOMINMAX
-#endif
-#define EMU_FASTCALL __fastcall
-
-#ifdef _MSC_VER
-inline struct tm* localtime_r(const time_t *clock, struct tm *result) {
- if (localtime_s(result, clock) == 0)
- return result;
- return nullptr;
-}
-#endif
-
-#else // EMU_PLATFORM != PLATFORM_WINDOWS
-
-#define EMU_FASTCALL __attribute__((fastcall))
-#define __stdcall
-#define __cdecl
-
-#define BOOL bool
-#define DWORD u32
-
-// TODO: Hacks..
-#include <limits.h>
-
-#include <strings.h>
-#define stricmp(str1, str2) strcasecmp(str1, str2)
-#define _stricmp(str1, str2) strcasecmp(str1, str2)
-#define _snprintf snprintf
-#define _getcwd getcwd
-#define _tzset tzset
-
-typedef void EXCEPTION_POINTERS;
-
-#endif
-
#define GCC_VERSION_AVAILABLE(major, minor) (defined(__GNUC__) && (__GNUC__ > (major) || \
(__GNUC__ == (major) && __GNUC_MINOR__ >= (minor))))