check for defined constants
Merge pull request #1762 from Remo/patch-2

check for defined constants