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.
1 job for master
Status Job ID Name Coverage
  External
failed build