*BSD News Article 60370


Return to BSD News archive

Path: euryale.cc.adfa.oz.au!newshost.anu.edu.au!harbinger.cc.monash.edu.au!news.bhp.com.au!mel.dit.csiro.au!munnari.OZ.AU!news.ecn.uoknor.edu!news.eng.convex.com!hermes.oc.com!news.unt.edu!cs.utexas.edu!academ!bcm.tmc.edu!news.msfc.nasa.gov!newsfeed.internetmci.com!howland.reston.ans.net!blackbush.xlink.net!zib-berlin.de!newsserv.cs.uni-magdeburg.de!dali.cs.uni-magdeburg.de!jesse
From: jesse@csmd.cs.UNI-Magdeburg.DE (Roland Jesse)
Newsgroups: comp.unix.bsd.freebsd.misc
Subject: conflicting types for `wchar_t'
Date: 29 Jan 1996 14:00:04 GMT
Organization: Univ. of Magdeburg, CS Dept, Germany
Lines: 23
Message-ID: <4eijt4$5sa@dali.cs.uni-magdeburg.de>
NNTP-Posting-Host: csmd48.cs.uni-magdeburg.de
X-Newsreader: TIN [version 1.2 PL2]

How may I avoid the error that `wchar_t' is previous declared when in 
/usr/X11R6/include/X11/Xlib.h is this line:

typedef unsigned long wchar_t;

and in /usr/include/stdlib.h this one:

typedef _BSD_WCHAR_T_   wchar_t; 

???


Both header files are needed. So how to avoid this error?
(BTW: same procedure with `sys_errlist'...)

Thanks for any help.

--
Roland (rj,-) Jesse, stud.rer.nat. et phil.
URL: http://www.cs.uni-magdeburg.de/~jesse/
E-Mail: jesse@csmd.cs.uni-magdeburg.de
 - pgp encrypted mail preferred -