error.h: add extern "C" for C++
Merge pull request #1816 from cremno/error.h-add-extern_c

error.h: add extern "C" for C++