fixes extern declaration for printf