Rename iOS subtarget to iPhone for consistency.

Add `ODIN_PLATFORM_SUBTARGET_IOS` builtin constant which evaluated to
`true` when the platform is `Darwin` and the subtarget it either `iPhone` or `iPhoneSimulator`
This commit is contained in:
Harold Brenes
2025-07-14 21:55:28 -04:00
parent 67c90b5d9e
commit bab4ce11fc
7 changed files with 17 additions and 25 deletions
+1 -1
View File
@@ -28,7 +28,7 @@ init_platform :: proc() {
macos_version = {int(version.majorVersion), int(version.minorVersion), int(version.patchVersion)}
when ODIN_PLATFORM_SUBTARGET == .iOS {
when ODIN_PLATFORM_SUBTARGET_IOS {
os_version.platform = .iOS
ws(&b, "iOS")
} else {