Module Name: othersrc Committed By: agc Date: Thu Dec 3 01:31:55 UTC 2015
Modified Files: othersrc/external/bsd/sqlite3db/dist: sqlite3db.h Log Message: add c++ compilation guard to the header file To generate a diff of this commit: cvs rdiff -u -r1.1.1.1 -r1.2 othersrc/external/bsd/sqlite3db/dist/sqlite3db.h Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: othersrc/external/bsd/sqlite3db/dist/sqlite3db.h diff -u othersrc/external/bsd/sqlite3db/dist/sqlite3db.h:1.1.1.1 othersrc/external/bsd/sqlite3db/dist/sqlite3db.h:1.2 --- othersrc/external/bsd/sqlite3db/dist/sqlite3db.h:1.1.1.1 Thu Nov 26 19:22:46 2015 +++ othersrc/external/bsd/sqlite3db/dist/sqlite3db.h Thu Dec 3 01:31:55 2015 @@ -30,7 +30,21 @@ #include <db.h> #include <sqlite3.h> +#ifndef __BEGIN_DECLS +# if defined(__cplusplus) +# define __BEGIN_DECLS extern "C" { +# define __END_DECLS } +# else +# define __BEGIN_DECLS +# define __END_DECLS +# endif +#endif + +__BEGIN_DECLS + DB *sqlite3db_dbopen(const char */*file*/, int /*flags*/, mode_t /*mode*/, DBTYPE /*type*/, const void */*openinfo*/); int sqlite3db_convert(const char */*oldf*/, const char */*newf*/, DBTYPE /*type*/); +__END_DECLS + #endif