1 /* 2 3 ratproxy - type definitions 4 --------------------------- 5 6 A couple of semi-portable integer types with reasonably short names. 7 8 Author: Michal Zalewski <lcamtuf@google.com> 9 10 Copyright 2007, 2008 by Google Inc. All Rights Reserved. 11 12 Licensed under the Apache License, Version 2.0 (the "License"); 13 you may not use this file except in compliance with the License. 14 You may obtain a copy of the License at 15 16 http://www.apache.org/licenses/LICENSE-2.0 17 18 Unless required by applicable law or agreed to in writing, software 19 distributed under the License is distributed on an "AS IS" BASIS, 20 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 21 See the License for the specific language governing permissions and 22 limitations under the License. 23 24 */ 25 26 #ifndef _HAVE_TYPES_H 27 #define _HAVE_TYPES_H 28 29 typedef unsigned char _u8; 30 typedef unsigned short _u16; 31 typedef unsigned int _u32; 32 33 #ifdef WIN32 34 typedef unsigned __int64 _u64; 35 #else 36 typedef unsigned long long _u64; 37 #endif /* ^WIN32 */ 38 39 typedef signed char _s8; 40 typedef signed short _s16; 41 typedef signed int _s32; 42 43 #ifdef WIN32 44 typedef signed __int64 _s64; 45 #else 46 typedef signed long long _s64; 47 #endif /* ^WIN32 */ 48 49 #endif /* ! _HAVE_TYPES_H */ 50