1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1.2 +++ b/epoc32/include/tools/stlport/stl/_mbstate_t.h Tue Mar 16 16:12:26 2010 +0000
1.3 @@ -0,0 +1,39 @@
1.4 +/*
1.5 + * Copyright (c) 1999
1.6 + * Boris Fomitchev
1.7 + *
1.8 + * This material is provided "as is", with absolutely no warranty expressed
1.9 + * or implied. Any use is at your own risk.
1.10 + *
1.11 + * Permission to use or copy this software for any purpose is hereby granted
1.12 + * without fee, provided the above notices are retained on all copies.
1.13 + * Permission to modify the code and to distribute modified code is granted,
1.14 + * provided the above notices are retained, and a notice that the code was
1.15 + * modified is included with the above copyright notice.
1.16 + *
1.17 + */
1.18 +
1.19 +#ifndef _STLP_INTERNAL_MBSTATE_T
1.20 +#define _STLP_INTERNAL_MBSTATE_T
1.21 +
1.22 +#if (defined (__OpenBSD__) || defined (__FreeBSD__)) && defined (__GNUC__) && !defined (_GLIBCPP_HAVE_MBSTATE_T)
1.23 +# define __mbstate_t_defined /* mbstate_t defined in native <cwchar>, so not defined in C! */
1.24 +#endif
1.25 +
1.26 +#if defined (_STLP_NO_NATIVE_MBSTATE_T) && !defined (_STLP_NO_MBSTATE_T) && !defined (_MBSTATE_T) && !defined (__mbstate_t_defined)
1.27 +# define _STLP_USE_OWN_MBSTATE_T
1.28 +# define _MBSTATE_T
1.29 +#endif
1.30 +
1.31 +#if defined (_STLP_USE_OWN_MBSTATE_T)
1.32 +typedef int mbstate_t;
1.33 +
1.34 +# if defined (__cplusplus)
1.35 +_STLP_BEGIN_NAMESPACE
1.36 +using ::mbstate_t;
1.37 +_STLP_END_NAMESPACE
1.38 +# endif
1.39 +
1.40 +#endif /* _STLP_USE_OWN_MBSTATE_T */
1.41 +
1.42 +#endif /* _STLP_INTERNAL_MBSTATE_T */