tpm2-software/tpm2-tss

Is FAPI supposed to work without `HAVE_CONFIG_H`?

Akuli opened this issue · 1 comments

Akuli commented

In a project I am working on, #include <config.h> tends to pick up whatever garbage is already in the include path and cannot be used. So I added a file that #undefs HAVE_CONFIG_H.

Turns out that wasn't enough, and I also had to include <ctype.h> in my new file:

#ifdef HAVE_CONFIG_H
#include <config.h>
#include <dirent.h>
#include <ctype.h>
#endif

Are the standard-library includes supposed to be inside the ifdef?

Are the standard-library includes supposed to be inside the ifdef

No I will fix it.