platform-specific code in separate files; common part in common file; common header.