[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: sqlite3.c won't compile with -std=c89

From: Mattias Engdegård <mattiase_at_bredband.net>
Date: Sun, 24 Mar 2013 20:59:13 +0100

Unfortunately I missed a second compilation of sqlite3.c, in wc-
queries-test.c. Here's an updated patch. Sorry about not getting it
right the first time.

[[[
Work around a problem on older OS X systems: sqlite3.c includes
<libkern/OSAtomic.h>, which uses 'inline' and thus cannot be compiled
with -std=c89 that we are using for all files.

* subversion/libsvn_subr/sqlite3wrapper.c
   (toplevel): Define 'inline' as '__inline__' (which gcc accepts even
in c89
    mode) during a pre-emptive inclusion of <libkern/OSAtomic.h>.
* subversion/tests/libsvn_wc/wc-queries-test.c
   (toplevel): Likewise.
]]]

Received on 2013-03-24 20:59:49 CET

This is an archived mail posted to the Subversion Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.