Bruno Haible <br...@clisp.org> writes: > In summary, it looks to me that the ISO C and ISO C++ committees need to > do some more work to align the syntaxes. > extern noreturn void _Exit (void); > vs. > extern [[noreturn]] void _Exit (void);
If the difference is this small, then we could work around it in Gnulib: #if (C++ style noreturn) #define noreturn [[noreturn]] #elif (C style noreturn) /* nothing to do */ #elif (Microsoft style noreturn) #define noreturn __declspec(noreturn) #else #define noreturn #endif -- Ben Pfaff http://benpfaff.org