vmxdev / tkvdb

Trie key-value database
ISC License
336 stars 24 forks source link

Improve cooperation with C++ environments #4

Closed elfring closed 6 years ago

elfring commented 6 years ago

Some code from C source files should be wrapped by the setting “extern "C"” for C++ tools.

vmxdev commented 6 years ago

Is there a need for use “extern "C"” with typedefs? Functions are already wrapped with it. Test C++ code (with g++) compiled and linked without any warnings.

elfring commented 6 years ago

Can it be nicer to put such an annotation at the top of your C header file (so that more declarations can be safely handled also for C++)?