I not sure if this fixes the "Invalid number of character ({) when these macros are defined" error from cppcheck but the start of a namespace declaration being inside a #if without it's closing } has to be wrong. Andy