Skip to content
Snippets Groups Projects
Commit c3bd4fd1 authored by Gregory Nutt's avatar Gregory Nutt
Browse files

stdnoreturn.h: Definitions removed from compiler.h below here

parent c4ab1550
No related branches found
No related tags found
No related merge requests found
......@@ -40,10 +40,26 @@
* Included Files
****************************************************************************/
/* If the noreturn keyword is support by this toolchain, then keywork will be
* defined in compiler.h.
*/
#ifdef __GNUC__
#include <nuttx/compiler.h>
/* C11 adds _Noreturn keyword that the function will not return. */
# if __cplusplus >= 201103L
# define noreturn _Noreturn
# else
# define noreturn
# endif
#elif defined(SDCC) || defined(__SDCC)
/* Current SDCC supports noreturn via C11 _Noreturn keyword. */
# define noreturn _Noreturn
#else
# define noreturn
#endif
#endif /* __INCLUDE_STDNORETURN_H */
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment