OpenWrt Forum Archive

Topic: are there a macro which check the OpenWRT version

The content of this topic has been archived on 21 Apr 2018. There are no obvious gaps in this topic, but there may still be some posts missing at the end.

I m looking if there is a macro to check if the OpenWRT version is Attitude Adjusment in the c code of my application

Something like

#ifdef ATTITUDE_ADJUSMENT
     ..........
#endif

are there a such macro in the OpenWRT AA environment? if yes how to activate it?

There is no such macro.

Find it!. I have to add the following bloc in my OpenWRT Makefile


ifeq ($(RELEASE),Attitude Adjustment)
TARGET_CFLAGS += \
    -DATTITUDE_ADJUSMENT
endif
jow wrote:

There is no such macro.

The discussion might have continued from here.