summaryrefslogtreecommitdiff
path: root/src/common/platform.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/common/platform.h')
-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 @@
66//////////////////////////////////////////////////////////////////////////////////////////////////// 66////////////////////////////////////////////////////////////////////////////////////////////////////
67// Compiler-Specific Definitions 67// Compiler-Specific Definitions
68 68
69#if EMU_PLATFORM == PLATFORM_WINDOWS
70
71#include <time.h>
72
73#ifndef NOMINMAX
74#define NOMINMAX
75#endif
76#define EMU_FASTCALL __fastcall
77
78#ifdef _MSC_VER
79inline struct tm* localtime_r(const time_t *clock, struct tm *result) {
80 if (localtime_s(result, clock) == 0)
81 return result;
82 return nullptr;
83}
84#endif
85
86#else // EMU_PLATFORM != PLATFORM_WINDOWS
87
88#define EMU_FASTCALL __attribute__((fastcall))
89#define __stdcall
90#define __cdecl
91
92#define BOOL bool
93#define DWORD u32
94
95// TODO: Hacks..
96#include <limits.h>
97
98#include <strings.h>
99#define stricmp(str1, str2) strcasecmp(str1, str2)
100#define _stricmp(str1, str2) strcasecmp(str1, str2)
101#define _snprintf snprintf
102#define _getcwd getcwd
103#define _tzset tzset
104
105typedef void EXCEPTION_POINTERS;
106
107#endif
108
109#define GCC_VERSION_AVAILABLE(major, minor) (defined(__GNUC__) && (__GNUC__ > (major) || \ 69#define GCC_VERSION_AVAILABLE(major, minor) (defined(__GNUC__) && (__GNUC__ > (major) || \
110 (__GNUC__ == (major) && __GNUC_MINOR__ >= (minor)))) 70 (__GNUC__ == (major) && __GNUC_MINOR__ >= (minor))))