[82971] trunk/base/src/cregistry/registry.c
raimue at macports.org
raimue at macports.org
Mon Aug 22 16:39:15 PDT 2011
Revision: 82971
http://trac.macports.org/changeset/82971
Author: raimue at macports.org
Date: 2011-08-22 16:39:13 -0700 (Mon, 22 Aug 2011)
Log Message:
-----------
cregistry: Extended result codes are only available in SQLite >= 3.3.8,
which is too new for Tiger.
Modified Paths:
--------------
trunk/base/src/cregistry/registry.c
Modified: trunk/base/src/cregistry/registry.c
===================================================================
--- trunk/base/src/cregistry/registry.c 2011-08-22 23:17:24 UTC (rev 82970)
+++ trunk/base/src/cregistry/registry.c 2011-08-22 23:39:13 UTC (rev 82971)
@@ -109,8 +109,11 @@
return 0;
}
if (sqlite3_open(NULL, ®->db) == SQLITE_OK) {
- /* Enable extended status codes*/
+ /* Enable extended result codes, requires SQLite >= 3.3.8
+ * Check added for compatibility with Tiger. */
+#if SQLITE_VERSION_NUMBER >= 3003008
sqlite3_extended_result_codes(reg->db, 1);
+#endif
if (init_db(reg->db, errPtr)) {
reg->status = reg_none;
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20110822/688b8c68/attachment.html>
More information about the macports-changes
mailing list