You have to add same kind of patch in all the c files throwing that error. A better alternatives is to do it in a header and include it in the c files. But given that it is planned to be removed, any workaround solution would work to get it fixed for the moment.