summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLibravatar Junio C Hamano <gitster@pobox.com>2011-03-15 14:21:47 -0700
committerLibravatar Junio C Hamano <gitster@pobox.com>2011-03-15 14:21:47 -0700
commit848e219fe696b45d36353d12cdb47870cae2559e (patch)
tree1ae75595c5dc1b623a01c23bb7fe8ae6186998d5
parentDocumentation: running test with --debug keeps "trash" directory (diff)
parentgit-compat-util.h: Honor HP C's noreturn attribute (diff)
downloadtgif-848e219fe696b45d36353d12cdb47870cae2559e.tar.xz
Merge branch 'mr/hpux'
* mr/hpux: git-compat-util.h: Honor HP C's noreturn attribute Makefile: add NO_FNMATCH_CASEFOLD to HP-UX section
-rw-r--r--Makefile1
-rw-r--r--git-compat-util.h5
2 files changed, 5 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index ade79232f4..5c2b797554 100644
--- a/Makefile
+++ b/Makefile
@@ -1042,6 +1042,7 @@ ifeq ($(uname_S),HP-UX)
NO_UNSETENV = YesPlease
NO_HSTRERROR = YesPlease
NO_SYS_SELECT_H = YesPlease
+ NO_FNMATCH_CASEFOLD = YesPlease
SNPRINTF_RETURNS_BOGUS = YesPlease
NO_NSEC = YesPlease
ifeq ($(uname_R),B.11.00)
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)