Replace 'typedef int bool' with 'stdbool.h' to avoid possible multiple definitions of 'bool'. Remove 'typedef char Bool' and use 'bool' instead. Signed-off-by: Dharmik Thakkar <dharmik.thakkar@arm.com> Reviewed-by: Phil Yang <phil.yang@arm.com> Reviewed-by: Ruifeng Wang <ruifeng.wang@arm.com> Acked-by: Yong Wang <yongwang@vmware.com>
20 lines
378 B
C
20 lines
378 B
C
/* SPDX-License-Identifier: BSD-3-Clause
|
|
* Copyright(c) 2010-2014 Intel Corporation
|
|
*/
|
|
|
|
#ifndef _VMXNET3_OSDEP_H
|
|
#define _VMXNET3_OSDEP_H
|
|
|
|
#include <stdbool.h>
|
|
|
|
typedef uint64_t uint64;
|
|
typedef uint32_t uint32;
|
|
typedef uint16_t uint16;
|
|
typedef uint8_t uint8;
|
|
|
|
#ifndef UNLIKELY
|
|
#define UNLIKELY(x) __builtin_expect((x),0)
|
|
#endif /* unlikely */
|
|
|
|
#endif /* _VMXNET3_OSDEP_H */
|