diff options
author | Peter Breitenlohner <peb@mppmu.mpg.de> | 2014-05-02 08:44:53 +0000 |
---|---|---|
committer | Peter Breitenlohner <peb@mppmu.mpg.de> | 2014-05-02 08:44:53 +0000 |
commit | 3d5c08dd1c8d7fa5a72d1b4a9999ea29f141f8ff (patch) | |
tree | eb3b5e0c923e128f174429ac6ea1315bb3f90012 | |
parent | d1b1c31d54d6b7267ef350885840b46868c90da0 (diff) |
texk/mendexk: OS X build fix
git-svn-id: svn://tug.org/texlive/trunk@33788 c570f23f-e606-0410-a88d-b1316a301751
-rw-r--r-- | Build/source/texk/mendexk/ChangeLog | 4 | ||||
-rw-r--r-- | Build/source/texk/mendexk/fwrite.c | 5 |
2 files changed, 9 insertions, 0 deletions
diff --git a/Build/source/texk/mendexk/ChangeLog b/Build/source/texk/mendexk/ChangeLog index 0fed09d047f..a3d33df8dbb 100644 --- a/Build/source/texk/mendexk/ChangeLog +++ b/Build/source/texk/mendexk/ChangeLog @@ -1,3 +1,7 @@ +2014-05-02 Peter Breitenlohner <peb@mppmu.mpg.de> + + * fwrite.c: OS X build fix. + 2014-04-30 Norbert Preining <preining@logic.at> * fwrite.c: Replace sprintf with snprintf. 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)) |