Macro redefinition warnings

- Fixed macro redefinition warnings
- Added some indentation to platform.h