From 5c20c7619a3b2b0e99acd3e107cfa50ce570a65a Mon Sep 17 00:00:00 2001 From: Ceyhun Ozugur Date: Mon, 6 Feb 2017 13:02:01 +0300 Subject: [PATCH] Only import CSQLite module when building with CocoaPods --- Sources/SQLite/Core/Connection.swift | 2 +- Sources/SQLite/Core/Statement.swift | 2 +- Sources/SQLite/Helpers.swift | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Sources/SQLite/Core/Connection.swift b/Sources/SQLite/Core/Connection.swift index 06611756..87ea3a22 100644 --- a/Sources/SQLite/Core/Connection.swift +++ b/Sources/SQLite/Core/Connection.swift @@ -28,7 +28,7 @@ import Dispatch import sqlite3 #elseif SQLITE_SWIFT_SQLCIPHER import SQLCipher -#else +#elseif COCOAPODS import CSQLite #endif diff --git a/Sources/SQLite/Core/Statement.swift b/Sources/SQLite/Core/Statement.swift index 766bd15b..7e584ef9 100644 --- a/Sources/SQLite/Core/Statement.swift +++ b/Sources/SQLite/Core/Statement.swift @@ -26,7 +26,7 @@ import sqlite3 #elseif SQLITE_SWIFT_SQLCIPHER import SQLCipher -#else +#elseif COCOAPODS import CSQLite #endif diff --git a/Sources/SQLite/Helpers.swift b/Sources/SQLite/Helpers.swift index 81a7507e..08c9a144 100644 --- a/Sources/SQLite/Helpers.swift +++ b/Sources/SQLite/Helpers.swift @@ -26,7 +26,7 @@ import sqlite3 #elseif SQLITE_SWIFT_SQLCIPHER import SQLCipher -#else +#elseif COCOAPODS import CSQLite #endif