[Xapian-discuss] Compiling Xapian within a Cocoa project
Olly Betts
olly at survex.com
Wed May 1 23:33:09 BST 2013
On Tue, Apr 30, 2013 at 03:04:17AM +0100, Olly Betts wrote:
> On Fri, Apr 26, 2013 at 07:56:59AM +0100, Olly Betts wrote:
> > Something in the OS X SDK is defining check() as a macro, which breaks
> > any code after that which defines or declares a function or method
> > called check().
For 1.3.1 I've added a workaround for this issue (I added parentheses
around the method name to stop the check() macro getting expanded).
I'll backport that for 1.2.16 too.
> > The simplest thing to do is to just include <xapian.h> *before* the
> > problematic header.
But I'd recommend doing this (or defining
__ASSERT_MACROS_DEFINE_VERSIONS_WITHOUT_UNDERSCORES to 0) anyway, as
it'll allow your code to build with older and newer Xapian versions.
Cheers,
Olly
More information about the Xapian-discuss
mailing list