Using preprocessor defined during compilation time

38 views Asked by At

I want to define a preprocessor in compile time so that I can use it like this in the code

#ifdef MYFLAG
do some thing
#endif

I added that flag using AC_DEFINE([MYFLAG], [1], [My Flag]) in configure.ac and ran autoreconf. I can see it defined in configure file but still I can not use it.

0

There are 0 answers