How to handle conditional compiler code?

I am closing this thread as a duplicate of

and

Please do not raise duplicate threads. It is against the rules of this community – and quite simply, annoying.