In gmp.h, include always. The previous code tried to guess whether had been included already, using that to control whether stdio-using interfaces were included. THis is broken, as it means inclusion order matters. So just always include .