2004-12-18 09:16:31 +00:00
|
|
|
/*
|
2005-01-08 13:40:14 +00:00
|
|
|
* $Id: types.h,v 1.8 2005-01-08 13:40:14 bacon Exp $
|
2004-12-18 09:16:31 +00:00
|
|
|
*/
|
|
|
|
|
2004-12-18 09:58:49 +00:00
|
|
|
#ifndef _XP_TYPES_H_
|
|
|
|
#define _XP_TYPES_H_
|
2004-12-18 09:16:31 +00:00
|
|
|
|
2004-12-18 10:01:18 +00:00
|
|
|
#include <xp/itypes.h>
|
2004-12-18 09:16:31 +00:00
|
|
|
|
2004-12-18 10:56:00 +00:00
|
|
|
typedef xp_uint8_t xp_byte_t;
|
|
|
|
|
2005-01-08 13:40:14 +00:00
|
|
|
#ifdef XP_HAVE_WCHAR_T
|
|
|
|
// TODO: make it configurable from outside
|
2005-01-06 15:13:26 +00:00
|
|
|
/*
|
2005-01-02 15:43:46 +00:00
|
|
|
#define XP_CHAR_IS_MCHAR
|
2004-12-18 09:58:49 +00:00
|
|
|
typedef xp_mchar_t xp_char_t;
|
|
|
|
typedef xp_mcint_t xp_cint_t;
|
2005-01-06 15:13:26 +00:00
|
|
|
*/
|
|
|
|
|
|
|
|
#define XP_CHAR_IS_WCHAR
|
|
|
|
typedef xp_wchar_t xp_char_t;
|
|
|
|
typedef xp_wcint_t xp_cint_t;
|
2004-12-18 09:16:31 +00:00
|
|
|
|
2005-01-08 13:40:14 +00:00
|
|
|
#else
|
|
|
|
#define XP_CHAR_IS_MCHAR
|
|
|
|
typedef xp_mchar_t xp_char_t;
|
|
|
|
typedef xp_mcint_t xp_cint_t;
|
|
|
|
#endif
|
|
|
|
|
2004-12-18 09:16:31 +00:00
|
|
|
#endif
|