{"thread":{"id":"37813","subject":"[PATCH 1/3] git-compat-util.h: Support variadic macros with the XL C compiler","startedAt":"2014-10-26T17:33:12Z","lastAt":"2014-10-26T17:33:12Z","messageCount":1,"participants":["David Michael"],"isPatch":true,"patchVersion":1,"patchTotal":3},"messages":[{"id":"251063","messageId":"87ppdeag87.fsf@gmail.com","threadId":"37813","inReplyTo":null,"subject":"[PATCH 1/3] git-compat-util.h: Support variadic macros with the XL C compiler","fromName":"David Michael","fromEmail":"fedora.dm0@gmail.com","sentAt":"2014-10-26T17:33:12Z","receivedAt":"2014-10-26T17:33:12Z","isPatch":true,"sender":{"key":"fedora.dm0@gmail.com","avatar":"https://avatars.githubusercontent.com/u/1379865?v=4"},"body":"When the XL C compiler is run with an appropriate language level or\nsuboption, it defines a feature test macro to indicate support for\nvariadic macros.\n\nThis was tested on z/OS, but it should also work on AIX according\nto IBM documentation.\n\nSigned-off-by: David Michael <fedora.dm0@gmail.com>\n---\n git-compat-util.h | 2 +-\n 1 file changed, 1 insertion(+), 1 deletion(-)\n\ndiff --git a/git-compat-util.h b/git-compat-util.h\nindex 2107127..b31cfdd 100644\n--- a/git-compat-util.h\n+++ b/git-compat-util.h\n@@ -778,7 +778,7 @@ void git_qsort(void *base, size_t nmemb, size_t size,\n #endif\n #endif\n \n-#if defined(__GNUC__) || (_MSC_VER >= 1400)\n+#if defined(__GNUC__) || (_MSC_VER >= 1400) || defined(__C99_MACRO_WITH_VA_ARGS)\n #define HAVE_VARIADIC_MACROS 1\n #endif\n \n-- \n1.9.3\n"}]}