[Mono.Data.Sqlite] Remove p/invokes to symbols that are not available on iOS version...
[mono.git] / mcs / class / Mono.Data.Sqlite / Mono.Data.Sqlite_2.0 / UnsafeNativeMethods.cs
index 4b440b951ed56cd07ede1b2c0f6aa3a3ebc21615..ba16a1763ff92b3141d7515bf8f463affd6c2ab4 100644 (file)
@@ -200,6 +200,8 @@ namespace Mono.Data.Sqlite
 #endif\r
     internal static extern IntPtr sqlite3_bind_parameter_name(IntPtr stmt, int index);\r
 \r
+// Apple does not include those symbols in it's libsqlite3\r
+#if !MONOTOUCH\r
 #if !PLATFORM_COMPACTFRAMEWORK\r
     [DllImport(SQLITE_DLL, CallingConvention = CallingConvention.Cdecl)]\r
 #else\r
@@ -213,6 +215,7 @@ namespace Mono.Data.Sqlite
     [DllImport(SQLITE_DLL)]\r
 #endif\r
     internal static extern IntPtr sqlite3_column_database_name16(IntPtr stmt, int index);\r
+#endif\r
 \r
 #if !PLATFORM_COMPACTFRAMEWORK\r
     [DllImport(SQLITE_DLL, CallingConvention = CallingConvention.Cdecl)]\r
@@ -242,6 +245,7 @@ namespace Mono.Data.Sqlite
 #endif\r
     internal static extern IntPtr sqlite3_column_name16(IntPtr stmt, int index);\r
 \r
+#if !MONOTOUCH\r
 #if !PLATFORM_COMPACTFRAMEWORK\r
     [DllImport(SQLITE_DLL, CallingConvention = CallingConvention.Cdecl)]\r
 #else\r
@@ -269,6 +273,7 @@ namespace Mono.Data.Sqlite
     [DllImport(SQLITE_DLL)]\r
 #endif\r
     internal static extern IntPtr sqlite3_column_table_name16(IntPtr stmt, int index);\r
+#endif // !MONOTOUCH\r
 \r
 #if !PLATFORM_COMPACTFRAMEWORK\r
     [DllImport(SQLITE_DLL, CallingConvention = CallingConvention.Cdecl)]\r
@@ -646,6 +651,7 @@ namespace Mono.Data.Sqlite
 #endif\r
     internal static extern void sqlite3_result_text16(IntPtr context, string strName, int nLen, IntPtr pvReserved);\r
 \r
+#if !MONOTOUCH\r
 #if !PLATFORM_COMPACTFRAMEWORK\r
     [DllImport(SQLITE_DLL, CallingConvention = CallingConvention.Cdecl)]\r
 #else\r
@@ -659,6 +665,7 @@ namespace Mono.Data.Sqlite
     [DllImport(SQLITE_DLL)]\r
 #endif\r
     internal static extern int sqlite3_rekey(IntPtr db, byte[] key, int keylen);\r
+#endif\r
 \r
 #if !PLATFORM_COMPACTFRAMEWORK\r
     [DllImport(SQLITE_DLL, CallingConvention = CallingConvention.Cdecl)]\r