[geary/ricotz/vala: 43/45] Add missing includes for extern symbols
- From: Rico Tzschichholz <ricotz src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [geary/ricotz/vala: 43/45] Add missing includes for extern symbols
- Date: Tue, 9 Nov 2021 16:04:39 +0000 (UTC)
commit f999d02328f4c38002c3edd5f5f453931682dca5
Author: Rico Tzschichholz <ricotz ubuntu com>
Date: Tue Apr 27 08:44:23 2021 +0200
Add missing includes for extern symbols
src/engine/db/db.vala | 1 +
src/engine/util/util-string.vala | 2 +-
2 files changed, 2 insertions(+), 1 deletion(-)
---
diff --git a/src/engine/db/db.vala b/src/engine/db/db.vala
index 438a1cd90..a79f4ae51 100644
--- a/src/engine/db/db.vala
+++ b/src/engine/db/db.vala
@@ -25,6 +25,7 @@
// Work around missing const in sqlite3.vapi. See Bug 795627.
extern const int SQLITE_OPEN_URI;
+[CCode (cheader_filename = "sqlite3.h")]
extern int sqlite3_enable_shared_cache(int enabled);
namespace Geary.Db {
diff --git a/src/engine/util/util-string.vala b/src/engine/util/util-string.vala
index 6b4cdfe22..f02363492 100644
--- a/src/engine/util/util-string.vala
+++ b/src/engine/util/util-string.vala
@@ -5,7 +5,7 @@
*/
// GLib's character-based substring function.
-[CCode (cname = "g_utf8_substring")]
+[CCode (cheader_filename = "glib.h", cname = "g_utf8_substring")]
extern string glib_substring(string str, long start_pos, long end_pos);
namespace Geary.String {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]