[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-devel] Pesky '#define current' in mini-os/sched.h


  • To: xen-devel@xxxxxxxxxxxxxxxxxxx
  • From: Ferenc Wagner <wferi@xxxxxxx>
  • Date: Mon, 27 Apr 2009 20:11:24 +0200
  • Delivery-date: Mon, 27 Apr 2009 11:11:52 -0700
  • List-id: Xen developer discussion <xen-devel.lists.xensource.com>

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.

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.