maybe you're right, but I didn't find that defined in the source... this is what I suggest :
#ifdef _XLIB_H
#ifndef MAC_TCL
#ifndef WIN32
#if TK_MAJOR_VERSION == 8 && TK_MINOR_VERSION == 4 && TK_RELEASE_SERIAL < 9

....




KaKaRoTo

On Sat, 03 Dec 2005 16:47:21 -0500, Karol Krizka <[EMAIL PROTECTED]> wrote:

On Saturday 03 December 2005 12:13, Youness Alaoui wrote:
Yeah, I know they wrap X functions, but I don't want to use them, like for Mac, the XGetImage was a dummy function, with nothing inside... but I just
want my code to work only for linux, because the dummy function for
XGetGeometry might return 0 for width and height and then we can't do
much....
anyways, the bug is known to happen ONLY in linux, so if we don't touch
the code for windows, then we're good...
ohh.. I just understood... you mean the X_PROTOCOL might be defined even
for windows ??? ok.. find a better define then :S

Alright, how about:
#ifndef XGetGeometry_TCL_DECLARED

Tk seems to declare it whenever they make the function themselfs.

KKRT

On Sat, 03 Dec 2005 14:51:33 -0500, Le Philousophe - Phil

<[EMAIL PROTECTED]> wrote:
> Sorry to reopen the bug :p
> I noticed some thing : XGetGeometry can be used under windows !!
> Do you know that Tk exports wrapping to this function like many others
> for
> other systems than X11 ?
> I will test that because it isn't clean to draw outer the bounds ;)
> Too bad : I will have to go back to "Windaube" :s
> Phil
>
> Le Samedi 3 Décembre 2005 17:40, Karol Krizka a écrit :
>> On Saturday 03 December 2005 07:34, Youness Alaoui wrote:
>> > ok, ok, enough thank you-s... hehe
>> >
>> > guys, I think my fix isn't finished!
>> > who knows what the variable is, in order to know we're in X ? because
>>
>> I
>>
>> > think my fix should be enclosed within an
>> > #ifdef USING_X
>> > XGetGeometry ...
>> >
>> > #endif
>> >
>> > because we'll have problems compiling for windows and mac...
>> >
>> > when you found the define for it, can you please add it ? thanks
>>
>> There is X_PROTOCOL that contains the protocol version. I guess we could
>> use that.
>
> -------------------------------------------------------
> This SF.net email is sponsored by: Splunk Inc. Do you grep through log
> files
> for problems?  Stop!  Download the new AJAX search engine that makes
> searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
> http://ads.osdn.com/?ad_idv37&alloc_id865&op=click
> _______________________________________________
> Amsn-devel mailing list
> Amsn-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/amsn-devel




--
KaKaRoTo


-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
_______________________________________________
Amsn-devel mailing list
Amsn-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/amsn-devel

Reply via email to