gpt4 book ai didi

c++ - Windows (UWP) 而非 iOS 的通用运行时组件#ifdef 是什么?

转载 作者:行者123 更新时间:2023-11-30 03:27:32 25 4
gpt4 key购买 nike

我正在尝试在 git 子模块中使用跨平台 C++ 代码构建通用运行时组件。当我想要为通用运行时组件 (UWP) 而不是 iOS 上的 xcode 构建代码时,我需要弄清楚 #ifdef 的用途。

#ifdef __WINDOWS_ONLY_COMPILE_FLAG?
// some code i want to compile on windows
#endif

最佳答案

默认情况下,通用 Windows 项目获得定义的 WINDOWS_UWP 编译器指令。

关于c++ - Windows (UWP) 而非 iOS 的通用运行时组件#ifdef 是什么?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/47288937/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com