Replace unnecessary #define with #ifdef
Merge pull request #2018 from yebblies/snprintf

[DDMD] Replace unnecessary #define with #ifdef