From e55836e4ce6c1f866aa17d14ba59c40d5d063cc1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=86=B7=E9=92=A6=E8=A1=97?= <15390014138@163.com> Date: Wed, 23 Sep 2020 11:22:49 +0800 Subject: [PATCH] =?UTF-8?q?update=20include/hos=5Ftypes.h.=20ohos=5Ftypes.?= =?UTF-8?q?h=E4=BB=85=E5=A4=9A2=E4=B8=AA=E5=AE=8F=E5=B8=B8=E9=87=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- include/hos_types.h | 80 +-------------------------------------------- 1 file changed, 1 insertion(+), 79 deletions(-) diff --git a/include/hos_types.h b/include/hos_types.h index f13d633..9629bba 100755 --- a/include/hos_types.h +++ b/include/hos_types.h @@ -1,79 +1 @@ -/* - * Copyright (c) 2020 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -#ifndef OHOS_TYPES_H -#define OHOS_TYPES_H - -#ifdef __cplusplus -#if __cplusplus -extern "C"{ -#endif -#endif /* __cplusplus */ - -/* - * Defintion of basic data types. - * The data types are applicable to both the application and kernel. - */ -typedef unsigned char uint8; -typedef unsigned short uint16; -typedef unsigned int uint32; -typedef signed char int8; -typedef short int16; -typedef int int32; - -#ifndef _M_IX86 -typedef unsigned long long uint64; -typedef long long int64; -#else -typedef unsigned __int64 uint64; -typedef __int64 int64; -#endif - -typedef int boolean; - -typedef void *pHandle; - -typedef unsigned int BOOL; - -#ifndef TRUE -#define TRUE 1L -#endif - -#ifndef FALSE -#define FALSE 0L -#endif - -#ifndef NULL -#ifdef __cplusplus -#define NULL 0L -#else -#define NULL ((void*)0) -#endif -#endif - -#define HOS_SUCCESS 0 -#define HOS_FAILURE (-1) - -#ifndef ARRAY_SIZE -#define ARRAY_SIZE(x) (sizeof(x) / sizeof((x)[0])) -#endif - -#ifdef __cplusplus -#if __cplusplus -} -#endif -#endif /* __cplusplus */ - -#endif /* OHOS_TYPES_H */ - +#include "ohos_types.h" -- Gitee