I'm trying to translate C++ header files into Pascal. There is lot of cases where interface (just name) is defined:
Then it is used in some completely defined interface:
INTF2 = interface(INTF_BASE)
function intf2_a(p:INTF1):int; stdcall;
end;
And lastly, the interface is fully defined:
INTF1 = interface(INTF_BASE)
function intf1_x:int; stdcall;
end;
When I try to do this in Free Pascal, I get Duplicate identifier error. How can I redefine interface?