To solve some compilation issues encountered during the porting of third-party libraries, this function has been added. Signed-off-by: zhanghongyu <zhanghongyu@xiaomi.com>