Ne.app NeANT
The Ne.app NeANT User module of the NeANT distribution.
WCTYPE_T.cpp
Go to the documentation of this file.
1// checking for wctype_t in <wchar.h> and <wctype.h>
2
3
25#include "config.h"
26
27
28#if defined (__EDG__) \
29 && !defined (__DECCXX) \
30 && !defined (__HP_aCC) \
31 && !defined (__INTEL_COMPILER) \
32 && !defined (_SGI_COMPILER_VERSION)
33 // disable error #450-D: the type "long long" is nonstandard
34 // when using the vanilla EDG eccp in strict mode (i.e., w/o
35 // long long support)
36# pragma diag_suppress 450
37#endif // EDG eccp on Linux
38
39
40#ifndef _RWSTD_NO_WCHAR_H
41# include <wchar.h>
42#endif // _RWSTD_NO_WCHAR_H
43
44#ifndef _RWSTD_NO_WCTYPE_H
45# include <wctype.h>
46#endif
47
48#include <stdio.h>
49
50
51const char* foo (char) { return "char"; }
52const char* foo (short) { return "short"; }
53const char* foo (unsigned short) { return "unsigned short"; }
54const char* foo (int) { return "int"; }
55const char* foo (unsigned int) { return "unsigned int"; }
56const char* foo (long) { return "long"; }
57const char* foo (unsigned long) { return "unsigned long"; }
58
59#ifndef _RWSTD_NO_LONG_LONG
60
61const char* foo (long long) { return "long long"; }
62const char* foo (unsigned long long) { return "unsigned long long"; }
63
64#endif // _RWSTD_NO_LONG_LONG
65
66int main ()
67{
68 wctype_t wc = 0;
69
70 printf ("#define _RWSTD_WCTYPE_T %s\n", foo (wc));
71}
IMPORT_C SInt32 printf(const Char *,...)
#define foo(buf, s,...)
int main()
Definition WCTYPE_T.cpp:66