diff options
author | Ramsay Jones <ramsay@ramsay1.demon.co.uk> | 2010-01-20 22:45:12 +0300 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2010-01-23 03:35:42 +0300 |
commit | aba7dea83bfba411dee0271491d6199d2dca61d9 (patch) | |
tree | 659e9fa71a3a427c70ea9f9abcc2868f8ccd50cd /git-compat-util.h | |
parent | c2c2be137ac491c17c4fe1fdd27b6a8ac5c1e6c6 (diff) |
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>
Diffstat (limited to 'git-compat-util.h')
-rw-r--r-- | git-compat-util.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/git-compat-util.h b/git-compat-util.h index aff627a85a8..620a7c6371d 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 |