Simple Application Framework
1
|
00001 /* 00002 This file is part of Simple Application Framework (Saf) library. 00003 Copyright (C) 2010 - 2012 Ondrej Danek <ondrej.danek@gmail.com> 00004 00005 This library is free software: you can redistribute it and/or modify 00006 it under the terms of the GNU General Public License as published 00007 by the Free Software Foundation, either version 3 of the License, or 00008 (at your option) any later version. 00009 00010 Saf is distributed in the hope that it will be useful, 00011 but WITHOUT ANY WARRANTY; without even the implied warranty of 00012 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00013 GNU General Public License for more details. 00014 00015 You should have received a copy of the GNU General Public License 00016 along with Simple Application Framework library. If not, 00017 see <http://www.gnu.org/licenses/>. 00018 */ 00019 00028 #ifndef SAF_TYPE_H 00029 #define SAF_TYPE_H 00030 00031 #include <stdint.h> 00032 #include "Platform.h" 00033 00035 namespace Saf 00036 { 00038 typedef int8_t Int8; 00040 typedef uint8_t Uint8; 00041 00043 typedef int16_t Int16; 00045 typedef uint16_t Uint16; 00046 00048 typedef int32_t Int32; 00050 typedef uint32_t Uint32; 00051 00053 typedef int64_t Int64; 00055 typedef uint64_t Uint64; 00056 00058 typedef float Float32; 00060 typedef double Float64; 00061 00062 #ifdef SAF_PLATFORM_ARCH_X64 00063 00067 typedef Int64 Pint; 00068 00073 typedef Uint64 Size; 00074 #else 00075 00079 typedef Int32 Pint; 00080 00085 typedef Uint32 Size; 00086 #endif 00087 00089 typedef Pint Diff; 00090 } 00091 00092 #endif