diff --git a/native/CMakeLists.txt b/native/CMakeLists.txt index 8b1c9fd2c83..aeee3884be4 100644 --- a/native/CMakeLists.txt +++ b/native/CMakeLists.txt @@ -3173,7 +3173,7 @@ function(cc_apply_definations target) $<$:SCRIPT_ENGINE_TYPE=5> $<$:SCRIPT_ENGINE_TYPE=6> $<$,$>:CC_DEBUG=1> - $,CC_USE_APDF=1,CC_USE_APDF=0> + $,CC_USE_ADPF=1,CC_USE_ADPF=0> $,CC_USE_GOOGLE_BILLING=1,CC_USE_GOOGLE_BILLING=0> ) endfunction() diff --git a/native/cocos/platform/android/adpf_manager.h b/native/cocos/platform/android/adpf_manager.h index 7ba133aad8b..712d76d84a0 100644 --- a/native/cocos/platform/android/adpf_manager.h +++ b/native/cocos/platform/android/adpf_manager.h @@ -16,7 +16,7 @@ #pragma once -#if CC_PLATFORM == CC_PLATFORM_ANDROID && __ANDROID_API__ >= 30 +#if CC_PLATFORM == CC_PLATFORM_ANDROID && __ANDROID_API__ >= 30 && CC_USE_ADPF #include #include #include