[UE4]编译时的各个平台定义宏

在这里
\Engine\Source\Runtime\Core\Public\HAL\Platform.h

  1. // define all other platforms to be zero  
  2. //@port Define the platform here to be zero when compiling for other platforms  
    #if !defined(PLATFORM_WINDOWS)  
        #define PLATFORM_WINDOWS 0  
    #endif  
    #if !defined(PLATFORM_XBOXONE)  
        #define PLATFORM_XBOXONE 0  
    #endif  
    #if !defined(PLATFORM_MAC)  
        #define PLATFORM_MAC 0  
    #endif  
    #if !defined(PLATFORM_PS4)  
        #define PLATFORM_PS4 0  
    #endif  
    #if !defined(PLATFORM_IOS)  
        #define PLATFORM_IOS 0  
    #endif  
    #if !defined(PLATFORM_ANDROID)  
        #define PLATFORM_ANDROID 0  
    #endif  
    #if !defined(PLATFORM_ANDROID_ARM)  
        #define PLATFORM_ANDROID_ARM 0  
    #endif  
    #if !defined(PLATFORM_ANDROID_ARM64)  
        #define PLATFORM_ANDROID_ARM64 0  
    #endif  
    #if !defined(PLATFORM_ANDROID_X86)  
        #define PLATFORM_ANDROID_X86 0  
    #endif  
    #if !defined(PLATFORM_ANDROID_X64)  
        #define PLATFORM_ANDROID_X64 0  
    #endif  
    #if !defined(PLATFORM_ANDROIDGL4)  
        #define PLATFORM_ANDROIDGL4 0  
    #endif  
    #if !defined(PLATFORM_ANDROIDES31)  
        #define PLATFORM_ANDROIDES31 0  
    #endif  
    #if !defined(PLATFORM_WINRT)  
        #define PLATFORM_WINRT 0  
    #endif  
    #if !defined(PLATFORM_WINRT_ARM)  
        #define PLATFORM_WINRT_ARM  0  
    #endif  
    #if !defined(PLATFORM_APPLE)  
        #define PLATFORM_APPLE 0  
    #endif  
    #if !defined(PLATFORM_HTML5)  
        #define PLATFORM_HTML5 0  
    #endif  
    #if !defined(PLATFORM_LINUX)  
        #define PLATFORM_LINUX 0  
    #endif  


评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值