diff options
author | Peter Breitenlohner <peb@mppmu.mpg.de> | 2012-09-18 17:44:53 +0000 |
---|---|---|
committer | Peter Breitenlohner <peb@mppmu.mpg.de> | 2012-09-18 17:44:53 +0000 |
commit | ff4c225e209d4b46bbbab536e4d9bcc622aae917 (patch) | |
tree | ca760f324a96e1b786f20631a051272ba5f3bc00 /Build/source/texk/web2c | |
parent | 71f5cd9185be4bee4101648413c6804185cb979e (diff) |
synctex: Define snprintf and getcwd for WIN32
git-svn-id: svn://tug.org/texlive/trunk@27710 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source/texk/web2c')
-rw-r--r-- | Build/source/texk/web2c/synctexdir/ChangeLog | 4 | ||||
-rw-r--r-- | Build/source/texk/web2c/synctexdir/synctex_main.c | 11 |
2 files changed, 14 insertions, 1 deletions
diff --git a/Build/source/texk/web2c/synctexdir/ChangeLog b/Build/source/texk/web2c/synctexdir/ChangeLog index 120839a4423..4882f74d865 100644 --- a/Build/source/texk/web2c/synctexdir/ChangeLog +++ b/Build/source/texk/web2c/synctexdir/ChangeLog @@ -1,3 +1,7 @@ +2012-09-06 Peter Breitenlohner <peb@mppmu.mpg.de> + + * synctex_main.c: Define snprintf and getcwd for WIN32. + 2012-07-30 Peter Breitenlohner <peb@mppmu.mpg.de> * synctex_main.c (TEST): Check values returned by snprintf(). diff --git a/Build/source/texk/web2c/synctexdir/synctex_main.c b/Build/source/texk/web2c/synctexdir/synctex_main.c index 3e3400ab87f..5274cda455c 100644 --- a/Build/source/texk/web2c/synctexdir/synctex_main.c +++ b/Build/source/texk/web2c/synctexdir/synctex_main.c @@ -88,8 +88,17 @@ This is the command line interface to the synctex_parser.c. inline static double my_fmax(double x, double y) { return (x < y) ? y : x; } # endif +#ifdef WIN32 +# define snprintf _snprintf +#endif + #if SYNCTEX_DEBUG -# include "unistd.h" +# ifdef WIN32 +# include <direct.h> +# define getcwd _getcwd +# else +# include <unistd.h> +# endif #endif int main(int argc, char *argv[]); |