include file error ?

Sebastian Benoit (Benoit@rsrz14.hrz.Uni-Marburg.DE)
Thu, 27 Jun 1996 01:38:40 +0200 (CES)


I hope this is the right place to ask :)

Is it possible that the following definition ...

#ifndef _WCHAR_T
typedef unsigned long wchar_t;
#endif /* _WCHAR_T */

... is missing from include/stddef.h ?

Without this definition I get the error below
when compiling ncurses (not specific to ncurses though).
In stdlib.h it says somewhere ...
/* Get size_t, wchar_t and NULL from <stddef.h>. */
#define __need_size_t
#define __need_wchar_t
#define __need_NULL
#include <stddef.h>

...but wchar_t is not in stddef.h ...the error...

In file included from ./comp_hash.c:36:
/usr/include/stdlib.h:333: parse error before *'
/usr/include/stdlib.h:336: parse error before wchar_t'
/usr/include/stdlib.h: In function mblen':
/usr/include/stdlib.h:340: wchar_t' undeclared (first use this function)
/usr/include/stdlib.h:340: (Each undeclared identifier is reported only once
/usr/include/stdlib.h:340: for each function it appears in.)
/usr/include/stdlib.h:340: parse error before )'
/usr/include/stdlib.h: At top level:
/usr/include/stdlib.h:345: parse error before *'
/usr/include/stdlib.h:347: parse error before *'
make[1]: *** [make_hash] Error 1
make[1]: Leaving directory /home/users/root2/src/ncurses-1.9.9e/ncurses'
make: *** [all] Error 2

I hope someone can answer this ...

- Sebastian Benoit Save the planet !
- benoit@mathematik.uni-marburg.de
- Benoit@Stud-Mailer.uni-marburg.de
- http://www.mathematik.uni-marburg.de/~benoit less is more !