[libgda] Fix inclusion of sqlite headers due to HAVE_SQLITE and STATIC_SQLITE confusion
- From: Jasper Lievisse Adriaanse <jasperla src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libgda] Fix inclusion of sqlite headers due to HAVE_SQLITE and STATIC_SQLITE confusion
- Date: Tue, 2 Oct 2012 06:30:57 +0000 (UTC)
commit 7f6c54ad5d4b4f8dc692758da72baf469bf69e4d
Author: Jasper Lievisse Adriaanse <jasper humppa nl>
Date: Tue Oct 2 08:28:41 2012 +0200
Fix inclusion of sqlite headers due to HAVE_SQLITE and STATIC_SQLITE confusion
https://bugzilla.gnome.org/show_bug.cgi?id=674781
libgda/sqlite/gda-sqlite-pstmt.h | 10 +++++++---
1 files changed, 7 insertions(+), 3 deletions(-)
---
diff --git a/libgda/sqlite/gda-sqlite-pstmt.h b/libgda/sqlite/gda-sqlite-pstmt.h
index ca8a340..212686f 100644
--- a/libgda/sqlite/gda-sqlite-pstmt.h
+++ b/libgda/sqlite/gda-sqlite-pstmt.h
@@ -21,10 +21,14 @@
#define __GDA_SQLITE_PSTMT_H__
#include <libgda/providers-support/gda-pstmt.h>
-#ifdef HAVE_SQLITE
-#include <sqlite3.h>
-#else
+#ifdef STATIC_SQLITE
#include "sqlite-src/sqlite3.h"
+#else
+# ifdef HAVE_SQLITE
+# include <sqlite3.h>
+# else
+# include "sqlite-src/sqlite3.h"
+#endif
#endif
G_BEGIN_DECLS
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]