Ne.app NeANT
The Ne.app NeANT User module of the NeANT distribution.
MBSTATE_T.cpp
Go to the documentation of this file.
1// checking for mbstate_t in <wchar.h> and <wctype.h>
2
3
25#include "config.h"
26
27#if defined (__EDG__) \
28 && !defined (__DECCXX) \
29 && !defined (__HP_aCC) \
30 && !defined (__INTEL_COMPILER) \
31 && !defined (_SGI_COMPILER_VERSION)
32 // disable error #450-D: the type "long long" is nonstandard
33 // when using the vanilla EDG eccp in strict mode (i.e., w/o
34 // long long support)
35# pragma diag_suppress 450
36#endif // EDG eccp on Linux
37
38
39// defined to get the correct definition of mbstate_t, available on HPUX;
40// once we get the correct size of the struct, _RWSTD_NO_MBSTATE_T is
41// defined in rw/_config.h and we (and the users of the library) are left
42// with our definition only
43#if defined (__HP_aCC)
44# define _INCLUDE__STDC_A1_SOURCE
45#endif
46
47#ifndef _RWSTD_NO_WCHAR_H
48# include <wchar.h>
49#endif // _RWSTD_NO_WCHAR_H
50
51#ifndef _RWSTD_NO_WCTYPE_H
52# include <wctype.h>
53#endif
54
55#include <stdio.h>
56
57int main ()
58{
59 printf ("#define _RWSTD_MBSTATE_T_SIZE %u\n", sizeof (mbstate_t));
60}
IMPORT_C SInt32 printf(const Char *,...)
int main()
Definition MBSTATE_T.cpp:57