Greg Miller wrote:
> Thomas Briggs wrote:
>
>>
>>
>>> From the looks of this warning, I would guess that you could redefine
>>> SQLITE_STATIC like this (or some variation of this that is legal C++)
>>> to solve
>>> the problem:
>>>
>>> #define SQLITE_STATIC ((extern "C" void(*)(void*)) 0)
what about
typedef void (*sqlite_static_t)(void *);
#define SQLITE_STATIC ((sqlite_static_t)0)
In C++ the type 'sqlite_static_t' would be between
extern "C" {
and
};
so the typedef should refer to C linkage, not C++ linkage. That way you
don't need any #ifdef sections
G�