[DDMD] Replace unnecessary #define with #ifdef

So it can be cleanly translated into a version block