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

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

From: Mattias Engdegård <mattiase_at_bredband.net>
Date: Sun, 24 Mar 2013 00:00:43 +0100

sqlite3.c (from the amalgamation) cannot in general be compiled with -
std=c89, which the Subversion build universally uses in trunk. How do
we make an exception for a single file, to have it compiled with a
different set of flags?

On OS X, sqlite3.c includes a system header file, <libkern/
OSAtomic.h>, which at least on this system cannot be compiled with gcc
-std=c89 because it uses constructs that are not permitted in pure
C89. The reasons for using -std=c89 for the rest of the code are
understood but clearly do not extend to sqlite.

Not finding an obvious and easy solution, I gave up and am now
patching the Makefiles after generating them. I would be happy if
someone could direct me to a proper solution.
Received on 2013-03-24 00:01:18 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.