openocd: header fix
* If included by cpp-file, this will cause trouble. So it gets restricted to use in c only. * Prevent usage of "new" as variable name * No redifinition of true and false, if included by C++ * Definition of bool fixed Change-Id: Ic5403bd576afd9d2900a8ecfbcfdc50561ba0633
This commit is contained in:
@ -126,10 +126,12 @@ int str_to_buf(const char *str, unsigned len,
|
||||
char *buf_to_str(const void *buf, unsigned size, unsigned radix);
|
||||
|
||||
/* read a uint32_t from a buffer in target memory endianness */
|
||||
#ifndef __cplusplus
|
||||
static inline uint32_t fast_target_buffer_get_u32(const void *p, bool le)
|
||||
{
|
||||
return le ? le_to_h_u32(p) : be_to_h_u32(p);
|
||||
}
|
||||
#endif
|
||||
|
||||
static inline void bit_copy(uint8_t *dst, unsigned dst_offset, const uint8_t *src,
|
||||
unsigned src_offset, unsigned bit_count)
|
||||
|
||||
Reference in New Issue
Block a user