Hi there!

I´m currently porting the native X-Layer of kaffe to CNI, but currently I´m having strange problems.
I dont understand the following source.
X is a very frequently used variable, but if I use it in my sourcecode (of course with toolkit.h included), gcc only says that its not defined.
This part is out of kaffe/libraries/awt/X/toolkit.h.
What is Toolkit? Is at some XFree related stuff or is it related to the Toolkit-class?
Why is it #ifdef?


Please help, my C is (as my Java) terrible ;-)

lg Clemens

#ifdef MAIN

Toolkit   XTk;
Toolkit   *X = &XTk;

.......
.......

#else

extern Toolkit* X;

........
........

#endif /* MAIN */


_______________________________________________ kaffe mailing list [EMAIL PROTECTED] http://kaffe.org/cgi-bin/mailman/listinfo/kaffe

Reply via email to