stdnoreturn.h: Definitions removed from compiler.h below here
This commit is contained in:
parent
c4ab155002
commit
c3bd4fd1d7
@ -40,10 +40,26 @@
|
|||||||
* Included Files
|
* Included Files
|
||||||
****************************************************************************/
|
****************************************************************************/
|
||||||
|
|
||||||
/* If the noreturn keyword is support by this toolchain, then keywork will be
|
#ifdef __GNUC__
|
||||||
* defined in compiler.h.
|
|
||||||
*/
|
|
||||||
|
|
||||||
#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 */
|
#endif /* __INCLUDE_STDNORETURN_H */
|
||||||
|
Loading…
Reference in New Issue
Block a user