From 4bd88ffb1fbaa1d7f4646736f91b581dd350083f Mon Sep 17 00:00:00 2001 From: arvinzzz Date: Thu, 30 Jun 2022 15:54:30 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20gcc=E4=BD=8E=E7=89=88=E6=9C=AC=E6=97=B6?= =?UTF-8?q?=E5=85=BC=E5=AE=B9=E4=B8=8Eohos=5Ftypes.h=E7=9A=84=E7=B1=BB?= =?UTF-8?q?=E5=9E=8B=E9=87=8D=E5=AE=9A=E4=B9=89=20close:=20#I5EW48?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: arvinzzz Change-Id: I897803addf5609b2f783d7b89ced9fb039e08f07 --- utils/los_compiler.h | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/utils/los_compiler.h b/utils/los_compiler.h index 1c60a306..54131e37 100644 --- a/utils/los_compiler.h +++ b/utils/los_compiler.h @@ -1,6 +1,6 @@ /* * Copyright (c) 2013-2019 Huawei Technologies Co., Ltd. All rights reserved. - * Copyright (c) 2020-2021 Huawei Device Co., Ltd. All rights reserved. + * Copyright (c) 2020-2022 Huawei Device Co., Ltd. All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: @@ -315,7 +315,6 @@ typedef float FLOAT; typedef double DOUBLE; typedef char CHAR; -typedef unsigned int BOOL; typedef unsigned long long UINT64; typedef signed long long INT64; typedef unsigned int UINTPTR; @@ -324,7 +323,14 @@ typedef signed int INTPTR; typedef volatile INT32 Atomic; typedef volatile INT64 Atomic64; +#ifndef DEFINED_BOOL +typedef unsigned int BOOL; +#define DEFINED_BOOL +#endif + +#ifndef VOID #define VOID void +#endif #ifndef FALSE #define FALSE ((BOOL)0)