Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 36a113c

Browse files
committedOct 22, 2017
Define I_STDARG cpp symbol for XS backcompat
While I'm not eager in general to go round defining symbols like this for all the standard headers, I_STDARG is a little unusual in that several older XS modules also use it to decide whether to call the va_args() macro using its pre-standardisation form (since C89 added an additional argument to it). Affected modules include DBI, Tk, and DBD::Unify.
1 parent 6437ba6 commit 36a113c

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed
 

‎perl.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -565,6 +565,7 @@
565565
#define VOL volatile
566566
#define CAN_PROTOTYPE
567567
#define _(args) args
568+
#define I_STDARG
568569
#endif
569570

570571
/* By compiling a perl with -DNO_TAINT_SUPPORT or -DSILENT_NO_TAINT_SUPPORT,

0 commit comments

Comments
 (0)
Please sign in to comment.