Merge pull request #12525 from lioncash/defined Core: Convert some preprocessor checking to use #ifdef/#if defined() over #if