Skip to content

Commit f13a655

Browse files
committed
avoid unresolved symbol
1 parent 4e02840 commit f13a655

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

graalpython/com.oracle.graal.python.cext/modules/_sqlite/sqlite/sqlite3.c

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -174096,7 +174096,10 @@ SQLITE_API const char sqlite3_version[] = SQLITE_VERSION;
174096174096
/* IMPLEMENTATION-OF: R-53536-42575 The sqlite3_libversion() function returns
174097174097
** a pointer to the to the sqlite3_version[] string constant.
174098174098
*/
174099-
SQLITE_API const char *sqlite3_libversion(void){ return sqlite3_version; }
174099+
/*
174100+
* GraalPy change: use SQLITE_VERSION instead of sqlite3_version
174101+
*/
174102+
SQLITE_API const char *sqlite3_libversion(void){ return SQLITE_VERSION; }
174100174103

174101174104
/* IMPLEMENTATION-OF: R-25063-23286 The sqlite3_sourceid() function returns a
174102174105
** pointer to a string constant whose value is the same as the

graalpython/com.oracle.graal.python.cext/modules/_sqlite/sqlite/sqlite3.h

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,10 @@ extern "C" {
182182
**
183183
** See also: [sqlite_version()] and [sqlite_source_id()].
184184
*/
185-
SQLITE_API SQLITE_EXTERN const char sqlite3_version[];
185+
/*
186+
* GraalPy change: avoid unresolved symbol "sqlite3_version"
187+
*/
188+
// SQLITE_API SQLITE_EXTERN const char sqlite3_version[];
186189
SQLITE_API const char *sqlite3_libversion(void);
187190
SQLITE_API const char *sqlite3_sourceid(void);
188191
SQLITE_API int sqlite3_libversion_number(void);

0 commit comments

Comments
 (0)