Added a wrapper to the header file for C++ compatibility