Compile code only for AP mode in hostpad

In Hostapd code, I am writing a function to do some actions , it should be compiled and executed only for AP mode,
The function added in wpa_auth.c and it is gettign compiled for wpa_supplicant as well. I dont want the code to be compiled for wpa_supplicant.

Do we have any such macros to disable the compilation for wpa_supplicant?