[Bug Fix] Properly check platform macro definition.

This commit should fix #126.