|
From: Nirgal <con...@ni...> - 2012-02-11 17:46:07
|
On Thursday 09 February 2012 09:37:09 Dobrov Grigoriy wrote: > (...) > The problem is that I am trying to include mdbtools.h header in my C++ > project and compiler fails in line 495: > extern void mdb_print_schema(MdbHandle *mdb, FILE *outfile, char *tabname, > char *namespace, guint32 export_options); > > The fail happens because 'namespace' is a keyword in C++ so the C++ > compiler doesn't expect it to occur in the middle of function declaration. > I understand that C-programmers aren't obliged to think about C++ keywords > so it seems to me that it's more reasonable to patch the header in debian > package, of course, if you are not against the idea to help c++ developers I renamed namespace into dbnamespace. See https://github.com/brianb/mdbtools/commit/7634e329c740825c97652175bcad16a1a58688ae |