Add GCMDeviceInfo macros and height calculation