mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-01-18 11:38:08 +00:00
correct use of APPLE targets
This commit is contained in:
parent
e7f35139b6
commit
975cfd8048
1 changed files with 3 additions and 3 deletions
|
|
@ -38,14 +38,14 @@ LINPHONE_BEGIN_NAMESPACE
|
|||
AbstractDb::AbstractDb (AbstractDbPrivate &p) : Object(p) {}
|
||||
|
||||
// Force static sqlite3 linking for IOS and Android.
|
||||
#if defined(TARGET_OS_IPHONE) || defined(__ANDROID__)
|
||||
#if TARGET_OS_IPHONE || defined(__ANDROID__)
|
||||
extern "C" void register_factory_sqlite3();
|
||||
#endif // defined(TARGET_OS_IPHONE) || defined(__ANDROID__)
|
||||
#endif // TARGET_OS_IPHONE || defined(__ANDROID__)
|
||||
|
||||
bool AbstractDb::connect (Backend backend, const string ¶meters) {
|
||||
L_D();
|
||||
|
||||
#if defined(TARGET_OS_IPHONE) || defined(__ANDROID__)
|
||||
#if TARGET_OS_IPHONE || defined(__ANDROID__)
|
||||
if (backend == Sqlite3)
|
||||
register_factory_sqlite3();
|
||||
#endif // defined(TARGET_OS_IPHONE) || defined(__ANDROID__)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue