38 lines
639 B
C
38 lines
639 B
C
/*
|
|
* $Id: types.h,v 1.11 2005-01-19 12:13:48 bacon Exp $
|
|
*/
|
|
|
|
#ifndef _XP_TYPES_H_
|
|
#define _XP_TYPES_H_
|
|
|
|
#ifndef _WIN32
|
|
#include <xp/config.h>
|
|
#endif
|
|
#include <xp/itypes.h>
|
|
|
|
typedef xp_uint8_t xp_byte_t;
|
|
|
|
typedef int xp_bool_t;
|
|
#define xp_true (0 == 0)
|
|
#define xp_false (0 != 0)
|
|
|
|
#ifdef XP_HAVE_WCHAR_T
|
|
// TODO: make it configurable from outside
|
|
/*
|
|
#define XP_CHAR_IS_MCHAR
|
|
typedef xp_mchar_t xp_char_t;
|
|
typedef xp_mcint_t xp_cint_t;
|
|
*/
|
|
|
|
#define XP_CHAR_IS_WCHAR
|
|
typedef xp_wchar_t xp_char_t;
|
|
typedef xp_wcint_t xp_cint_t;
|
|
|
|
#else
|
|
#define XP_CHAR_IS_MCHAR
|
|
typedef xp_mchar_t xp_char_t;
|
|
typedef xp_mcint_t xp_cint_t;
|
|
#endif
|
|
|
|
#endif
|