Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.kernel.org/pub/scm/git/git.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2011-03-21 08:11:15 +0300
committerJunio C Hamano <gitster@pobox.com>2011-03-21 08:11:15 +0300
commitdd7d0d09765117700db87b4ecf63551dd56a267a (patch)
treed7ee57d08d0a2855b28b882fd15e0b5e539cc59d /git-compat-util.h
parent106040fe8ecb670261f423c285d494d6d0170558 (diff)
parentb6ab349b184b3a33c7bcc03521dafed3f9df380a (diff)
Merge branch 'mr/hpux' into maint
* mr/hpux: git-compat-util.h: Honor HP C's noreturn attribute Makefile: add NO_FNMATCH_CASEFOLD to HP-UX section
Diffstat (limited to 'git-compat-util.h')
-rw-r--r--git-compat-util.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/git-compat-util.h b/git-compat-util.h
index 9c23622ed5..bf947b1ec3 100644
--- a/git-compat-util.h
+++ b/git-compat-util.h
@@ -214,7 +214,10 @@ extern char *gitbasename(char *);
#define is_dir_sep(c) ((c) == '/')
#endif
-#ifdef __GNUC__
+#if __HP_cc >= 61000
+#define NORETURN __attribute__((noreturn))
+#define NORETURN_PTR
+#elif defined(__GNUC__)
#define NORETURN __attribute__((__noreturn__))
#define NORETURN_PTR __attribute__((__noreturn__))
#elif defined(_MSC_VER)