]> git.ipfire.org Git - thirdparty/git.git/commitdiff
msvc: Add a definition of NORETURN compatible with msvc compiler
authorRamsay Jones <ramsay@ramsay1.demon.co.uk>
Wed, 20 Jan 2010 19:45:12 +0000 (19:45 +0000)
committerJunio C Hamano <gitster@pobox.com>
Sat, 23 Jan 2010 00:35:42 +0000 (16:35 -0800)
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>
git-compat-util.h

index aff627a85a812bb782e68cd27d06eb42d7dac537..620a7c6371d34671986622a9fa7b89ae9cb1f467 100644 (file)
@@ -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