The source code is not currently designed to compile on
C++ compilers. Although the code is written in C, it is
better to write it in a way it would compile on C++
compilers, aspecially the very common g++.
This can be easily done by making small changes in
declaration and naming (not using C++ keywords is a
good start :-) )