[Bug Fix] Properly check platform macro definition.

This commit should fix #126.
Merge pull request #127 from 3Hren/v0.11

[Bug Fix] Properly check platform macro definition.