Added 'extern "C"' declaration