Paul Eggert wrote: > I thought about it some more, and came up with > one somewhat-extreme way to try to fix things. > <stdnoreturn.h> could do this: > > #if 1200 <= _MSC_VER > # define noreturn > #else > # define noreturn _Noreturn > #endif > > As I understand it, this would cause MSVC's stdlib.h to > expand to this: > > __declspec( ) void abort (void); > > which (if Microsoft's grammar is right) should compile.
Yes, the Microsoft compiler groks a __declspec(), like it was absent. The other, equally extreme, solution is to add #ifdef _MSC_VER # include <stdlib.h> # include <setjmp.h> # include <process.h> #endif to the top of gnulib/lib/stdnoreturn.in.h. Bruno