Andrew's git
/
gitweb.git
/ diff
summary
|
log
|
commit
| diff |
tree
commit
grep
author
committer
pickaxe
?
re
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
raw
|
patch
|
inline
| side by side (parent:
c2c2be1
)
diff --git
a/git-compat-util.h
b/git-compat-util.h
index aff627a85a812bb782e68cd27d06eb42d7dac537..620a7c6371d34671986622a9fa7b89ae9cb1f467 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__))
#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
#else
#define NORETURN
#define NORETURN_PTR