38 lines
641 B
C
38 lines
641 B
C
/*
|
|
* $Id: types.h,v 1.12 2005-02-06 03:27:54 bacon Exp $
|
|
*/
|
|
|
|
#ifndef _XP_TYPES_H_
|
|
#define _XP_TYPES_H_
|
|
|
|
#ifndef _WIN32
|
|
#include <xp/config.h>
|
|
#endif
|
|
#include <xp/xp_types.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
|