unifdef

Remove cpp '#ifdef' lines from files

Install

All systems
curl cmd.cat/unifdef.sh
Debian Debian
apt-get install unifdef
Ubuntu
apt-get install unifdef
Arch Arch Linux
pacman -S unifdef
image/svg+xml Kali Linux
apt-get install unifdef
Fedora
dnf install unifdef
Windows (WSL2)
sudo apt-get update sudo apt-get install unifdef
OS X
brew install unifdef
Raspbian
apt-get install unifdef

unifdef

Remove cpp '#ifdef' lines from files

The unifdef utility selectively processes conditional cpp(1) 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.