// 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// Other conflicts44#define Event _Event45#define Framebuffer _Framebuffer46#define Waitable _Waitable47#define ThreadContext _ThreadContext48#include <switch.h>49// Cleanup50#undef KeyInputFlags::UP51#undef KeyInputFlags::DOWN52#undef Event53#undef Framebuffer54#undef Waitable55#undef ThreadContext5657// Conflicting types with libnx58#ifndef _u6459#define u64 _u6460#endif // _u646162#ifndef s6463#define s64 _s6464#endif // _s646566typedef unsigned char u_char;67typedef unsigned short u_short;68typedef unsigned int u_int;69typedef unsigned long u_long;70#endif // __SWITCH__7172typedef unsigned char u8;73typedef unsigned short u16;74typedef unsigned int u32;75typedef unsigned long long u64;7677typedef signed char s8;78typedef signed short s16;79typedef signed int s32;80typedef signed long long s64;8182#endif // _WIN32838485