summaryrefslogtreecommitdiffstats
path: root/git-compat-util.h
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2014-07-21 20:17:47 +0200
committerJunio C Hamano <gitster@pobox.com>2014-07-21 20:17:47 +0200
commit3b3b61c5d5ef93a68e9af3c17eebc09c96b71d08 (patch)
tree679fdf05b61712bac8ff89f717a6cbdcb2d7e624 /git-compat-util.h
parentMerge branch 'cc/for-each-mergetag' (diff)
parentFix profile feedback with -jN and add profile-fast (diff)
downloadgit-3b3b61c5d5ef93a68e9af3c17eebc09c96b71d08.tar.xz
git-3b3b61c5d5ef93a68e9af3c17eebc09c96b71d08.zip
Merge branch 'ak/profile-feedback-build'
* ak/profile-feedback-build: Fix profile feedback with -jN and add profile-fast Run the perf test suite for profile feedback too Don't define away __attribute__ on gcc Use BASIC_FLAGS for profile feedback
Diffstat (limited to 'git-compat-util.h')
-rw-r--r--git-compat-util.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/git-compat-util.h b/git-compat-util.h
index 0b53c9a4af..63d72db553 100644
--- a/git-compat-util.h
+++ b/git-compat-util.h
@@ -291,10 +291,12 @@ extern char *gitbasename(char *);
#else
#define NORETURN
#define NORETURN_PTR
+#ifndef __GNUC__
#ifndef __attribute__
#define __attribute__(x)
#endif
#endif
+#endif
/* The sentinel attribute is valid from gcc version 4.0 */
#if defined(__GNUC__) && (__GNUC__ >= 4)