// Copyright (C) 2003 Dolphin Project.12// This program is free software: you can redistribute it and/or modify3// it under the terms of the GNU General Public License as published by4// the Free Software Foundation, version 2.0 or later versions.56// This program is distributed in the hope that it will be useful,7// but WITHOUT ANY WARRANTY; without even the implied warranty of8// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the9// GNU General Public License 2.0 for more details.1011// A copy of the GPL 2.0 should have been included with the program.12// If not, see http://www.gnu.org/licenses/1314// Official SVN repository and contact information can be found at15// http://code.google.com/p/dolphin-emu/161718// This header contains type definitions that are shared between the Dolphin core and19// other parts of the code. Any definitions that are only used by the core should be20// placed in "Common.h" instead.2122#pragma once2324#if defined(_MSC_VER)2526#define NO_INLINE __declspec(noinline)2728typedef unsigned __int8 u8;29typedef unsigned __int16 u16;30typedef unsigned __int32 u32;31typedef unsigned __int64 u64;3233typedef signed __int8 s8;34typedef signed __int16 s16;35typedef signed __int32 s32;36typedef signed __int64 s64;3738#else3940#define NO_INLINE __attribute__((noinline))4142#ifdef __SWITCH__43// Some HID conflicts44#define KEY_UP PKEY_UP45#define KEY_DOWN PKEY_DOWN46// Other conflicts47#define Event _Event48#define Framebuffer _Framebuffer49#define Waitable _Waitable50#define ThreadContext _ThreadContext51#include <switch.h>52// Cleanup53#undef KEY_UP54#undef KEY_DOWN55#undef Event56#undef Framebuffer57#undef Waitable58#undef ThreadContext5960// Conflicting types with libnx61#ifndef _u6462#define u64 _u6463#endif // _u646465#ifndef s6466#define s64 _s6467#endif // _s646869typedef unsigned char u_char;70typedef unsigned short u_short;71typedef unsigned int u_int;72typedef unsigned long u_long;73#endif // __SWITCH__7475typedef unsigned char u8;76typedef unsigned short u16;77typedef unsigned int u32;78typedef unsigned long long u64;7980typedef signed char s8;81typedef signed short s16;82typedef signed int s32;83typedef signed long long s64;8485#endif // _WIN32868788