diff options
Diffstat (limited to 'Build/source/texk/mendexk/fwrite.c')
-rw-r--r-- | Build/source/texk/mendexk/fwrite.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/Build/source/texk/mendexk/fwrite.c b/Build/source/texk/mendexk/fwrite.c index 7d4851aa816..0255502664a 100644 --- a/Build/source/texk/mendexk/fwrite.c +++ b/Build/source/texk/mendexk/fwrite.c @@ -15,6 +15,11 @@ static int range_check(struct index ind, int count, char *lbuff); static void linecheck(char *lbuff, char *tmpbuff); static void crcheck(char *lbuff, FILE *fp); +/* OS X defines snprintf() as macro that chokes on using TAIL_LEN */ +#ifdef __APPLE__ +#undef snprintf +#endif + #define BUFFERLEN 4096 #define TAIL_LEN(x) ((x)+strlen(x)), (BUFFERLEN-strlen(x)) |