h file: add extern "C" if __cplusplus