qse/ase/types.h

38 lines
641 B
C
Raw Normal View History

2004-12-18 09:16:31 +00:00
/*
2005-02-06 03:27:54 +00:00
* $Id: types.h,v 1.12 2005-02-06 03:27:54 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
2005-01-19 11:58:26 +00:00
#ifndef _WIN32
#include <xp/config.h>
#endif
2005-02-06 03:27:54 +00:00
#include <xp/xp_types.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-19 12:13:48 +00:00
typedef int xp_bool_t;
2005-01-19 12:12:42 +00:00
#define xp_true (0 == 0)
#define xp_false (0 != 0)
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