Reformatted code
Including platform check in order to generate adequate warning message