From 55eb5de05921238cb7992fe76334553356bd3d9a Mon Sep 17 00:00:00 2001 From: Burt P Date: Wed, 1 Jan 2020 00:05:24 -0600 Subject: cpubits.h header guard Signed-off-by: Burt P --- deps/sysobj_early/include/cpubits.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'deps/sysobj_early') diff --git a/deps/sysobj_early/include/cpubits.h b/deps/sysobj_early/include/cpubits.h index 15686510..2d8fe8a6 100644 --- a/deps/sysobj_early/include/cpubits.h +++ b/deps/sysobj_early/include/cpubits.h @@ -18,6 +18,9 @@ * */ +#ifndef _CPUBITS_H_ +#define _CPUBITS_H_ + #include typedef uint32_t cpubits; @@ -32,3 +35,5 @@ char *cpubits_to_str(cpubits *bits, char *str, int max_len); #define CPUBIT_SET(BITS, BIT) ((BITS)[(BIT)/32] |= (1 << (BIT)%32)) #define CPUBIT_GET(BITS, BIT) (((BITS)[(BIT)/32] & (1 << (BIT)%32)) >> (BIT)%32) #define CPUBITS_CLEAR(BITS) memset((BITS), 0, CPUBITS_SIZE) + +#endif -- cgit v1.2.3