From: Ferenc Wagner Subject: Pesky '#define current' in mini-os/sched.h Date: Mon, 27 Apr 2009 20:11:24 +0200 Message-ID: <87k5563r1v.fsf@tac.ki.iif.hu> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org Hi, I'm trying to port ncurses to mini-os, and hit an ugly snag: xen-3.3.1/extras/mini-os/include/mini-os/sched.h says near the end: #define current get_current() which clashes with each field or variable named 'current'. Thus it pollutes the global and field namespace real bad, and is very easy to activate through including errno.h if HAVE_LIBC is defined. What is the best way around? -- Thanks, Feri.