Add extern "C" so it'll work better on C++