CoCalc provides the best real-time collaborative environment for Jupyter Notebooks, LaTeX documents, and SageMath, scalable from individual users to large groups and classes!
CoCalc provides the best real-time collaborative environment for Jupyter Notebooks, LaTeX documents, and SageMath, scalable from individual users to large groups and classes!
Path: blob/master/Common/CommonTypes.h
Views: 1401
// 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)2526typedef unsigned __int8 u8;27typedef unsigned __int16 u16;28typedef unsigned __int32 u32;29typedef unsigned __int64 u64;3031typedef signed __int8 s8;32typedef signed __int16 s16;33typedef signed __int32 s32;34typedef signed __int64 s64;3536#else3738#ifdef __SWITCH__39// Some HID conflicts40#define KEY_UP PKEY_UP41#define KEY_DOWN PKEY_DOWN42// Other conflicts43#define Event _Event44#define Framebuffer _Framebuffer45#define Waitable _Waitable46#define ThreadContext _ThreadContext47#include <switch.h>48// Cleanup49#undef KEY_UP50#undef KEY_DOWN51#undef Event52#undef Framebuffer53#undef Waitable54#undef ThreadContext5556// Conflicting types with libnx57#ifndef _u6458#define u64 _u6459#endif // _u646061#ifndef s6462#define s64 _s6463#endif // _s646465typedef unsigned char u_char;66typedef unsigned short u_short;67typedef unsigned int u_int;68typedef unsigned long u_long;69#endif // __SWITCH__7071typedef unsigned char u8;72typedef unsigned short u16;73typedef unsigned int u32;74typedef unsigned long long u64;7576typedef signed char s8;77typedef signed short s16;78typedef signed int s32;79typedef signed long long s64;8081#endif // _WIN32828384