Minor fix in ifdef check
Merge pull request #151 from tklengyel/ifdef_fix

Minor fix in ifdef check