On Wed, Sep 29, 2010 at 05:37:14PM -0500, DRC wrote:
> On 9/20/10 3:42 AM, Adam Tkac wrote:
> > Which version of autoconf are you using?
> 
> The version that ships with RHEL 4 (2.59).
> 
> The attached patch seems to make things work properly.  Question for
> Martin:  Is the "while(0)" really necessary?  I don't understand why the
> macro can't just be:
> 
> #define gnutls_transport_set_global_errno(A) errno=(A)

For the usage of gnutls_transport_set_global_errno in tigervnc, it
does not matter - but such a define can not be used on any place,
where you could call a real function.

The "do { ... } while (0)" allows a define to be used like a real
function.

Regards,
Martin Kögler

------------------------------------------------------------------------------
Start uncovering the many advantages of virtual appliances
and start using them to simplify application deployment and
accelerate your shift to cloud computing.
http://p.sf.net/sfu/novell-sfdev2dev
_______________________________________________
Tigervnc-devel mailing list
Tigervnc-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/tigervnc-devel

Reply via email to