[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: Branko Čibej <brane_at_wandisco.com>
Date: Mon, 25 Mar 2013 05:29:19 +0100

On 24.03.2013 20:46, Ivan Zhakov wrote:
> On Sun, Mar 24, 2013 at 5:36 PM, Mattias Engdegård
> <mattiase_at_bredband.net> wrote:
>> The attached patch is an alternative way of solving this particular problem.
>>
>> [[[
>> 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>.
>> ]]]
>>
> Another way to use APR_INLINE define declared in apr.h

I don't really think we want to patch SQLite sources.

-- Brane

-- 
Branko Čibej
Director of Subversion | WANdisco | www.wandisco.com
Received on 2013-03-25 05:30:05 CET

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