Wrapped all multi line defines in do {} while (0)

See the linux style guide Chapter 12 for more info