I would personally do the opposite - remove the ifdef code completely as it's not needed. I just did it in https://github.com/geany/geany/pull/2363.
Even though the default isn't very intuitive, running the executable directly from tmp doesn't work on all distributions so it's not something we should rely on.