On 02/27/2012 06:29 PM, Bruno Haible wrote: > The current set of definitions > > #define _Noreturn __declspec (noreturn) > #define noreturn _Noreturn > > leads to a syntax error when someone writes __declspec (noreturn), > because preprocessing transforms it to __declspec (__declspec (noreturn)). > > How can this syntax error be avoided?
I don't see any reasonable way to do it. Perhaps we should just document that <stdnoreturn.h> is incompatible with MSVC, unless it is included after all system include files (yuck!).