I guess this is not possible (yet) but not sure. I need to do conditional compilation based on current date. Something like:
#if (__CURRENT_YEAR < 2016)
...
#endif
I need to exclude something from project after some months and be sure that this will not be forgotten (in future releases).
In your Makefile add
CFLAGS += -DYEAR=$(shell date +%g)
Then in your C source:
#if (YEAR < 16)
....
#endif
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With