unifdef-2.12

Introduction to unifdef

The unifdef package contains a utility that is useful for removing preprocessor conditionals from code.

[Note]

Note

This package is known to build and work properly using an LFS 13.0 platform.

Package Information

Installation of unifdef

First, fix a problem when building with gcc-15:

sed -i 's/constexpr/unifdef_&/g' unifdef.c

Now fix a problem if reinstalling the package:

sed -i 's/ln -s/ln -sf/' Makefile

Install unifdef by running the following commands:

make

To test the results, issue: make test.

Finally, finish the installation as the root user:

make prefix=/usr install

Contents

Installed Programs: unifdef and unifdefall
Installed Libraries: None
Installed Directories: None

Short Descriptions

unifdef

removes preprocessor conditionals from code

unifdefall

removes preprocessor conditionals from code across a whole tree