gstein@tigris.org wrote:
>Author: gstein
>Date: 2002-08-26 16:22:13 -0500 (Mon, 26 Aug 2002)
>New Revision: 3073
>
>Modified:
> trunk/subversion/bindings/swig/util.i
>Log:
>Let SWIG get past the __attribute__ usage in svn_io.h.
>
>Patch submitted by Gustavo Niemeyer <niemeyer@conectiva.com>, and
>tweaked by gstein.
>
>
>Modified: trunk/subversion/bindings/swig/util.i
>==============================================================================
>--- trunk/subversion/bindings/swig/util.i (original)
>+++ trunk/subversion/bindings/swig/util.i Mon Aug 26 16:22:17 2002
>@@ -164,10 +164,16 @@
> /* ----------------------------------------------------------------------- */
>
> %include svn_types.h
>-%include svn_io.h
> %include svn_pools.h
> %include svn_version.h
> %include svn_time.h
>+
>+/* SWIG won't follow through to APR's defining this to be empty, so we
>+ need to do it manually, before SWIG sees this in svn_io.h. */
>+#define __attribute__(x)
>+
>+%include svn_io.h
>+
>
> %{
> #include <apr.h>
>
>
Hm. I suspect that we may someday use __attribute__ for other purposes.
Why not just put that #define at the top of the file?
--
Brane Čibej <brane_at_xbc.nu> http://www.xbc.nu/brane/
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Tue Aug 27 01:27:32 2002