Date: Thu, 11 May 2000 12:37:41 +0100 (BST) From: chrisr@pavilion.net To: FreeBSD-gnats-submit@freebsd.org Subject: misc/18496: Possibly a problem between curses.h/runetype.h? Message-ID: <200005111137.MAA39521@core.pavilion.net>
next in thread | raw e-mail | index | archive | help
>Number: 18496 >Category: misc >Synopsis: Possibly a problem between curses.h/runetype.h? >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Thu May 11 04:40:01 PDT 2000 >Closed-Date: >Last-Modified: >Originator: Chris Roberts >Release: FreeBSD 4.0-STABLE i386 >Organization: Pavilion Internet Plc >Environment: FreeBSD 4.0/x86 >Description: In curses.h wchar is typedef's as follows: #ifndef _WCHAR_T typedef unsigned long wchar_t; #endif /* _WCHAR_T */ And in runetype.h: #ifdef _BSD_WCHAR_T_ typedef _BSD_WCHAR_T_ wchar_t; #undef _BSD_WCHAR_T_ #endif >How-To-Repeat: Including ctype.h and curses.h seems to cause compiling errors because wchar gets redefined. >Fix: I've changed runetype.h to say: #ifdef _BSD_WCHAR_T_ typedef _BSD_WCHAR_T_ wchar_t; #define _WCHAR_T #undef _BSD_WCHAR_T_ #endif Which fixes it for me. Is it a bug, or just me including too much? >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200005111137.MAA39521>