This is the mail archive of the
cygwin-xfree@sources.redhat.com
mailing list for the Cygwin project.
Re: Development Status Update
- To: Harold Hunt <Harold at compasstechnologies dot com>
- Subject: Re: Development Status Update
- From: Alexander Gottwald <alexander dot gottwald at informatik dot tu-chemnitz dot de>
- Date: Mon, 20 Nov 2000 13:47:46 +0100 (CET)
- Cc: "Cygx (E-mail)" <cygwin-xfree at sources dot redhat dot com>
On Sun, 19 Nov 2000, Harold Hunt wrote:
> 4) Including windows.h in source files that also include X Windows headers
> causes several identifier collisions between the header files;
> compilation fails.
> 5) Implementing the DDX functions in xf_dx.dll seems like a good idea;
> however, that would require including the X Windows headers
> in the xf_dx.dll source files, along with windows.h,
> so we're back where we started.
What about putting the windows.h and the X11 Headers in different namespaces
namespace WIN {
#include "windows.h"
}
namespace X11 {
#include "X11.h"
}
this would mean all X11 functions and type would be named X11::xxxx
eg.X11::WINDOW. the windows types can be referenced by WIN::xxxx
eg. WIN::DoNothingLoop. I don't know if the windows or X11 includes
already have some namespaces defined - you should first have a look
into the includes. Maybe you should try putting only one of the includes
in the namespace.
HTH, ago
--
Alexander.Gottwald@informatik.tu-chemnitz.de | http://www.gotti.org
Wollen Sie Ihre Festplatte formatieren?
[J]a [N]atürlich