From aba7dea83bfba411dee0271491d6199d2dca61d9 Mon Sep 17 00:00:00 2001 From: Ramsay Jones Date: Wed, 20 Jan 2010 19:45:12 +0000 Subject: [PATCH] msvc: Add a definition of NORETURN compatible with msvc compiler Signed-off-by: Ramsay Jones Acked-by: Sebastian Schuberth Signed-off-by: Junio C Hamano --- git-compat-util.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/git-compat-util.h b/git-compat-util.h index aff627a85..620a7c637 100644 --- a/git-compat-util.h +++ b/git-compat-util.h @@ -178,6 +178,9 @@ extern char *gitbasename(char *); #ifdef __GNUC__ #define NORETURN __attribute__((__noreturn__)) #define NORETURN_PTR __attribute__((__noreturn__)) +#elif defined(_MSC_VER) +#define NORETURN __declspec(noreturn) +#define NORETURN_PTR #else #define NORETURN #define NORETURN_PTR -- 2.30.2