My Various Git Projects
/
git.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c2c2be1
)
msvc: Add a definition of NORETURN compatible with msvc compiler
author
Ramsay Jones
<ramsay@ramsay1.demon.co.uk>
Wed, 20 Jan 2010 19:45:12 +0000
(19:45 +0000)
committer
Junio 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
patch
|
blob
|
history
diff --git
a/git-compat-util.h
b/git-compat-util.h
index
aff627a
..
620a7c6
100644
(file)
--- 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