Add extern function declaration for Windows