diff options
author | Sergey Matveychuk <sem@FreeBSD.org> | 2005-12-11 15:39:01 +0000 |
---|---|---|
committer | Sergey Matveychuk <sem@FreeBSD.org> | 2005-12-11 15:39:01 +0000 |
commit | b42f76c6ce27338ae43c922210329cef2c9385da (patch) | |
tree | 7436b9529df8370db918f0b38270e2793fc77a0c /databases/mdbtools | |
parent | ef906a1401c6ca2d3b0900d88af157c2a1eef9a8 (diff) |
- Add `extern "C"' in headers files. It fixes linking with C++ applications.
Discussed with: Alex Lyashkov (Umka #bsd-unix @rusnet)
Notes
Notes:
svn path=/head/; revision=150884
Diffstat (limited to 'databases/mdbtools')
-rw-r--r-- | databases/mdbtools/Makefile | 2 | ||||
-rw-r--r-- | databases/mdbtools/files/patch-include_mdbsql.h | 21 | ||||
-rw-r--r-- | databases/mdbtools/files/patch-include_mdbtools.h | 22 |
3 files changed, 44 insertions, 1 deletions
diff --git a/databases/mdbtools/Makefile b/databases/mdbtools/Makefile index 4d897be57e73..a092c96a47da 100644 --- a/databases/mdbtools/Makefile +++ b/databases/mdbtools/Makefile @@ -7,7 +7,7 @@ PORTNAME= mdbtools PORTVERSION= 0.5 -PORTREVISION= 7 +PORTREVISION= 8 CATEGORIES= databases MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} MASTER_SITE_SUBDIR= ${PORTNAME} diff --git a/databases/mdbtools/files/patch-include_mdbsql.h b/databases/mdbtools/files/patch-include_mdbsql.h new file mode 100644 index 000000000000..0b4f8a69cb85 --- /dev/null +++ b/databases/mdbtools/files/patch-include_mdbsql.h @@ -0,0 +1,21 @@ +--- include/mdbsql.h.orig Sun Dec 11 18:22:34 2005 ++++ include/mdbsql.h Sun Dec 11 18:23:20 2005 +@@ -6,6 +6,10 @@ + #ifndef _mdbsql_h_ + #define _mdbsql_h_ + ++#ifdef __cplusplus ++extern "C" { ++#endif ++ + typedef struct { + MdbHandle *mdb; + int all_columns; +@@ -59,4 +63,7 @@ + void mdb_sql_listtables(MdbSQL *sql); + void mdb_sql_select(MdbSQL *sql); + ++#ifdef __cplusplus ++} ++#endif + #endif diff --git a/databases/mdbtools/files/patch-include_mdbtools.h b/databases/mdbtools/files/patch-include_mdbtools.h new file mode 100644 index 000000000000..6933bc3227b1 --- /dev/null +++ b/databases/mdbtools/files/patch-include_mdbtools.h @@ -0,0 +1,22 @@ +--- include/mdbtools.h.orig Sun Dec 11 18:22:42 2005 ++++ include/mdbtools.h Sun Dec 11 18:23:32 2005 +@@ -40,6 +40,10 @@ + #define MDB_MEMO_OVERHEAD 12 + #define MDB_BIND_SIZE 16384 + ++#ifdef __cplusplus ++extern "C" { ++#endif ++ + enum { + MDB_PAGE_DB = 0, + MDB_PAGE_DATA, +@@ -345,4 +349,8 @@ + /* index.c */ + extern GPtrArray *mdb_read_indices(MdbTableDef *table); + extern void mdb_index_dump(MdbTableDef *table, MdbIndex *idx); ++ ++#ifdef __cplusplus ++} ++#endif + #endif /* _mdbtools_h_ */ |