The open source OpenXR runtime

external: Dealing with MSVC in NanoPD

authored by

Jakob Bornecrantz and committed by
Moses Turner
57a31fde 2a7c4117

+3
+3
src/external/nanopb/pb.h
··· 178 178 # elif defined(__cplusplus) 179 179 /* C++11 standard static_assert mechanism */ 180 180 # define PB_STATIC_ASSERT(COND,MSG) static_assert(COND,#MSG); 181 + # elif defined(_MSC_VER) 182 + /* Required to work on MSVC */ 183 + # define PB_STATIC_ASSERT(COND,MSG) static_assert(COND,#MSG); 181 184 # else 182 185 /* C11 standard _Static_assert mechanism */ 183 186 # define PB_STATIC_ASSERT(COND,MSG) _Static_assert(COND,#MSG);