msvc: Add a definition of NORETURN compatible with msvc compiler
Signed-off-by: Ramsay Jones <ramsay@ramsay1.demon.co.uk> Acked-by: Sebastian Schuberth <sschuberth@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:
parent
c2c2be137a
commit
aba7dea83b
@ -178,6 +178,9 @@ extern char *gitbasename(char *);
|
|||||||
#ifdef __GNUC__
|
#ifdef __GNUC__
|
||||||
#define NORETURN __attribute__((__noreturn__))
|
#define NORETURN __attribute__((__noreturn__))
|
||||||
#define NORETURN_PTR __attribute__((__noreturn__))
|
#define NORETURN_PTR __attribute__((__noreturn__))
|
||||||
|
#elif defined(_MSC_VER)
|
||||||
|
#define NORETURN __declspec(noreturn)
|
||||||
|
#define NORETURN_PTR
|
||||||
#else
|
#else
|
||||||
#define NORETURN
|
#define NORETURN
|
||||||
#define NORETURN_PTR
|
#define NORETURN_PTR
|
||||||
|
Loading…
Reference in New Issue
Block a user