From 7ab3a5b81675ad1c7bbf64ebe0f8126e1a461819 Mon Sep 17 00:00:00 2001 From: liujialiang Date: Thu, 30 Jun 2022 19:42:23 +0800 Subject: [PATCH] Add a macro for BOOL Under some compiler, double typedef will cause FAILED. So we add a macro to avoid this problem. Signed-off-by: liujialiang Change-Id: I07f695f56eb40e3b0cf0b85e94212cf38c8ffbbf --- include/ohos_types.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/include/ohos_types.h b/include/ohos_types.h index aae5614..3853442 100644 --- a/include/ohos_types.h +++ b/include/ohos_types.h @@ -44,7 +44,10 @@ typedef int boolean; typedef void *pHandle; -typedef unsigned int BOOL; +#ifndef DEFINED_BOOL +typedef unsigned int BOOL; +#define DEFINED_BOOL +#endif #ifndef TRUE #define TRUE 1L -- Gitee