Inside the extern(C) block. Which is OK on Linux, but on Windows, that CEF_CALLBACK expands to __stdcall. So I believe this should be extern(System) pointer.
Given the preprocessor this is tricky to do but maybe some kind of hack could recognize the pattern anyway.
I ran this on the chromium embedded framework. It has functions like this:
int(CEF_CALLBACK move_to_next_attribute)(struct _cef_xml_reader_t self);
Inside the extern(C) block. Which is OK on Linux, but on Windows, that CEF_CALLBACK expands to __stdcall. So I believe this should be extern(System) pointer.
Given the preprocessor this is tricky to do but maybe some kind of hack could recognize the pattern anyway.