Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion src/unity_internals.h
Original file line number Diff line number Diff line change
Expand Up @@ -75,8 +75,10 @@
/* https://en.cppreference.com/w/c/language/_Noreturn */
#define UNITY_NORETURN _Noreturn
#else /* Using newer Windows SDK or not MSVC compiler */
#if defined(__GNUC__)
#if defined(__GNUC__) || (defined(__clang__) && defined(_MSC_VER))
/* The header <stdnoreturn.h> collides with __attribute(noreturn)__ from GCC. */
/* Clang-cl doesn't define __GNUC__ like regular clang, but still supports _Noreturn */
/* <stdnoreturn.h> would break __declspec(noreturn) in the Windows sdk headers.*/
#define UNITY_NORETURN _Noreturn
#else
#include <stdnoreturn.h>
Expand Down