00001 /* 00002 * Copyright (C) 2006, Jose Renato Santos. 00003 * 00004 * This file may be distributed under the terms of the Q Public License 00005 * as defined by Trolltech AS of Norway and appearing in the file 00006 * LICENSE.QPL included in the packaging of this file. 00007 * 00008 * THIS FILE IS PROVIDED AS IS WITH NO WARRANTY OF ANY KIND, INCLUDING 00009 * THE WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR 00010 * PURPOSE. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, 00011 * INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING 00012 * FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, 00013 * NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION 00014 * WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. 00015 * 00016 */ 00017 00018 /////////////////////////////////////////////////////////////////////////////// 00019 // RioT.h: basic integer (only?) types used by Rio. 00020 // These may differ on different systems/machines. 00021 // All names defined here must start with Rio as this file is 00022 // included by Rio clients. 00023 /////////////////////////////////////////////////////////////////////////////// 00024 00025 #ifndef __RIOT_H_ 00026 #define __RIOT_H_ 00027 00028 typedef char Rios8; 00029 typedef short Rios16; 00030 typedef int Rios32; 00031 00032 #ifdef WINDOWS 00033 // Windows implementation 00034 typedef hyper Rios64; 00035 typedef unsigned hyper Riou64; 00036 #else 00037 // Linux implementation 00038 typedef long long int Rios64; 00039 typedef unsigned long long int Riou64; 00040 #endif 00041 00042 /* ------------------------------- */ 00043 00044 typedef unsigned char Riou8; 00045 typedef unsigned short Riou16; 00046 typedef unsigned int Riou32; 00047 00048 #endif // _RIOT_H__