janwas
1861448e6c
also rename wchar -> utf8 to avoid conflict with <wchar.h> (requires rebuild of workspace) (unfortunately copying history fails to "502 bad gateway"; had to delete old + add new independently) This was SVN commit r7340.
54 lines
1.7 KiB
C
54 lines
1.7 KiB
C
/* Copyright (c) 2010 Wildfire Games
|
|
*
|
|
* Permission is hereby granted, free of charge, to any person obtaining
|
|
* a copy of this software and associated documentation files (the
|
|
* "Software"), to deal in the Software without restriction, including
|
|
* without limitation the rights to use, copy, modify, merge, publish,
|
|
* distribute, sublicense, and/or sell copies of the Software, and to
|
|
* permit persons to whom the Software is furnished to do so, subject to
|
|
* the following conditions:
|
|
*
|
|
* The above copyright notice and this permission notice shall be included
|
|
* in all copies or substantial portions of the Software.
|
|
*
|
|
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
|
* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
|
* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
|
|
* IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
|
|
* CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
|
|
* TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
|
|
* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
*/
|
|
|
|
/*
|
|
* convenient type aliases (shorter than stdint.h's uintN_t)
|
|
*/
|
|
|
|
#ifndef INCLUDED_TYPES
|
|
#define INCLUDED_TYPES
|
|
|
|
#include "lib/posix/posix_types.h"
|
|
|
|
// defines instead of typedefs so we can #undef conflicting decls
|
|
|
|
#define i8 int8_t
|
|
#define i16 int16_t
|
|
#define i32 int32_t
|
|
#define i64 int64_t
|
|
|
|
#define u8 uint8_t
|
|
#define u16 uint16_t
|
|
#define u32 uint32_t
|
|
#define u64 uint64_t
|
|
|
|
|
|
// the standard only guarantees 16 bits.
|
|
// we use this for memory offsets and ranges, so it better be big enough.
|
|
//#ifdef SIZE_MAX
|
|
//# if SIZE_MAX < 0xFFFFFFFF
|
|
//# error "check size_t and SIZE_MAX - too small?"
|
|
//# endif
|
|
//#endif
|
|
|
|
#endif // #ifndef INCLUDED_TYPES
|