Friend declarations to `extern "C"` functions must have a forward declaration with the correct signature.