Opened 11 years ago

Last modified 11 years ago

#5244 closed defect

SQLite: compilation error because redefinition of sqlite3_backup — at Version 1

Reported by: jorgearevalo Owned by: warmerdam
Priority: normal Milestone:
Component: default Version: svn-trunk
Severity: normal Keywords: sqlite, mac
Cc: jorgearevalo

Description (last modified by jorgearevalo)

In r26299, this line was added to ogrsqlite3ext.h:

typedef struct sqlite3_backup sqlite3_backup;

But this causes a compilation error with some SQLite versions because redefinition of sqlite3_backup (it is previously defined at sqlite.h, from SQLite3 library). Commenting that line in ogrsqlite3ext.h, it compiles. My environment:

  • OS: Mac OS X 10.6.8 (Snow Leopard)
  • SQLite3 v3.7.17

I'd suggest conditional definition of sqlite3_backup.

Change History (1)

comment:1 by jorgearevalo, 11 years ago

Description: modified (diff)
Note: See TracTickets for help on using tickets.