修改AC_MSG_CHECKING([for native Win32]) case "$host_os" in mingw|cygwin) os_win32=yes os_mac=no gio_os=gio-windows-2.0 red_target=Windows ;; darwin) os_win32=no os_mac=yes gio_os=gio-unix-2.0 red_target=Unix ;; *) os_win32=no os_mac=no gio_os=gio-unix-2.0 red_target=Unix ;; esac,使其能够判断iOS系统
时间: 2024-02-09 10:12:37 浏览: 126
Systemverilog-Verification-Me
要让这段代码能够判断 iOS 系统,可以在最后一个分支中添加判断条件,如下所示:
```
AC_MSG_CHECKING([for native Win32])
case "$host_os" in
mingw|cygwin)
os_win32=yes
os_mac=no
gio_os=gio-windows-2.0
red_target=Windows
;;
darwin)
os_win32=no
os_mac=yes
gio_os=gio-unix-2.0
red_target=Unix
;;
ios)
os_win32=no
os_mac=yes
gio_os=gio-unix-2.0
red_target=Unix
;;
*)
os_win32=no
os_mac=no
gio_os=gio-unix-2.0
red_target=Unix
;;
esac
```
这样,当系统类型为 iOS 时,os_win32 变量将被设置为 no,os_mac 变量将被设置为 yes,gio_os 变量将被设置为 gio-unix-2.0,red_target 变量将被设置为 Unix。
阅读全文