Re: [gtk-vnc-devel] [PATCH 4/7] Compress motion events to the VNC connection can keep up 2008-11-20 Federico Mena Quintero <federico novell com>



On Thu, Dec 18, 2008 at 10:04:59AM -0600, Federico Mena Quintero wrote:
> On Wed, 2008-12-17 at 19:50 -0600, Anthony Liguori wrote:
> 
> [Compress motion events with XCheckTypedWindowEvent() ]
> > This will break the Windows build.
> 
> Oops, sorry, I didn't realize that gtk-vnc was meant to compile on
> Windows as well.
> 
> Would a big fat #ifdef be sufficient here, or do you have some other
> policy for supporting X-isms?

Is there any macro available from GTK headers indicating what backend
you're compiling with.  If so, #ifdef GTK_X_BACKEND would be suitable
Using #ifndef WIN32 isn't strictly correct, because someone could be
using Linux + the framebuffer backend for GTK, etc 

Daniel
-- 
|: Red Hat, Engineering, London   -o-   http://people.redhat.com/berrange/ :|
|: http://libvirt.org  -o-  http://virt-manager.org  -o-  http://ovirt.org :|
|: http://autobuild.org       -o-         http://search.cpan.org/~danberr/ :|
|: GnuPG: 7D3B9505  -o-  F3C9 553F A1DA 4AC2 5648 23C1 B3DF F742 7D3B 9505 :|




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