Improve C++ compatibility (Horst Knorr)

This commit is contained in:
whydoubt
2005-04-09 01:46:51 +00:00
parent e2ba88c386
commit 90078d0e0f
2 changed files with 12 additions and 3 deletions

View File

@@ -1,11 +1,15 @@
#ifndef _mdbsql_h_
#define _mdbsql_h_
#ifdef __cplusplus
extern "C" {
#endif
#include <stdio.h>
#include <string.h>
#include <glib.h>
#include <mdbtools.h>
#ifndef _mdbsql_h_
#define _mdbsql_h_
typedef struct {
MdbHandle *mdb;
int all_columns;
@@ -75,4 +79,8 @@ extern int mdb_sql_fetch_row(MdbSQL *sql, MdbTableDef *table);
extern int mdb_sql_add_temp_col(MdbSQL *sql, MdbTableDef *ttable, int col_num, char *name, int col_type, int col_size, int is_fixed);
extern void mdb_sql_bind_column(MdbSQL *sql, int colnum, char *varaddr, int *len_ptr);
#ifdef __cplusplus
}
#endif
#endif