main.c: Migrate #ifdef-controlled code to #if control

This resolves issues where the #ifdef-controlled code could
counter-intuitively be activated even when the controlling #define
statement was set to 0.
parent 0715b617
Pipeline #137 failed with stage