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:
authorDavid Michael <fedora.dm0@gmail.com>2014-10-26 20:33:12 +0300
committerJunio C Hamano <gitster@pobox.com>2014-10-27 21:48:37 +0300
commitf51140c2470b50bcaff63b850f5e258c23d5853d (patch)
tree172ab842f7fd149ab02ef13ab963fb6a015f47af /git-compat-util.h
parent3c2dc76f015b4d52ef02a08c59a4546d00b475e1 (diff)
git-compat-util.h: support variadic macros with the XL C compiler
When the XL C compiler is run with an appropriate language level or suboption, it defines a feature test macro to indicate support for variadic macros by defining __C99_MACRO_WITH_VA_ARGS C preprocessor macro. This was tested on z/OS, but it should also work on AIX according to IBM documentation. Signed-off-by: David Michael <fedora.dm0@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'git-compat-util.h')
-rw-r--r--git-compat-util.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/git-compat-util.h b/git-compat-util.h
index f587749b7c..bf3a053a26 100644
--- a/git-compat-util.h
+++ b/git-compat-util.h
@@ -750,7 +750,7 @@ void git_qsort(void *base, size_t nmemb, size_t size,
#endif
#endif
-#if defined(__GNUC__) || (_MSC_VER >= 1400)
+#if defined(__GNUC__) || (_MSC_VER >= 1400) || defined(__C99_MACRO_WITH_VA_ARGS)
#define HAVE_VARIADIC_MACROS 1
#endif