/usr/bin/unifdef
The unifdef utility selectively processes conditional cpp directives. It removes from a file both the directives and any additional text that they specify should be removed, while otherwise leaving the file alone.