Keeps the cast from being separated from the value when used
in expressions.
Signed-off-by: Keith Packard <keithp@keithp.com>
* @return A pointer to the data struct containing the list head.
*/
#define ao_container_of(ptr, type, member) \
* @return A pointer to the data struct containing the list head.
*/
#define ao_container_of(ptr, type, member) \
- (type *)((char *)(ptr) - offsetof(type, member))
+ ((type *)((char *)(ptr) - offsetof(type, member)))
/**
* Alias of ao_container_of
/**
* Alias of ao_container_of