Skip to content

Commit f51140c

Browse files
dm0-gitster
authored andcommitted
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 <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 3c2dc76 commit f51140c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

git-compat-util.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -750,7 +750,7 @@ void git_qsort(void *base, size_t nmemb, size_t size,
750750
#endif
751751
#endif
752752

753-
#if defined(__GNUC__) || (_MSC_VER >= 1400)
753+
#if defined(__GNUC__) || (_MSC_VER >= 1400) || defined(__C99_MACRO_WITH_VA_ARGS)
754754
#define HAVE_VARIADIC_MACROS 1
755755
#endif
756756

0 commit comments

Comments
 (0)