From 2c9f4bfc913a6b245a0a624b57d0bfc7375b9878 Mon Sep 17 00:00:00 2001 From: "lothilic@163.com" Date: Wed, 12 Apr 2023 15:29:06 +0800 Subject: [PATCH] Add defines to identify iOS platforms Add defines "IOS_PLATFORM" to BUILD.gn. ISSUE: https://gitee.com/openharmony/commonlibrary_c_utils/issues/I6V2QA Change-Id: Ibb557f1473ca812288a2f48242767d15251f3c18 Signed-off-by: hezonglin2@huawei.com --- base/BUILD.gn | 2 ++ 1 file changed, 2 insertions(+) diff --git a/base/BUILD.gn b/base/BUILD.gn index cd3ad8d..a603ad4 100644 --- a/base/BUILD.gn +++ b/base/BUILD.gn @@ -110,6 +110,7 @@ ohos_static_library("utilsbase") { configs = [ ":utils_coverage_config" ] all_dependent_configs = [ ":utils_all_dependent_configs" ] public_deps = [ "//third_party/bounds_checking_function:libsec_static" ] + defines = [ "IOS_PLATFORM" ] subsystem_name = "commonlibrary" part_name = "c_utils" @@ -152,6 +153,7 @@ ohos_shared_library("utils") { configs = [ ":utils_coverage_config" ] all_dependent_configs = [ ":utils_all_dependent_configs" ] public_deps = [ "//third_party/bounds_checking_function:libsec_shared" ] + defines = [ "IOS_PLATFORM" ] subsystem_name = "commonlibrary" part_name = "c_utils" -- Gitee