To support this, the rendering_context_driver_metal.h header was updated to recognise when it is included in non-Objective-C source files.