diff options
-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[]); |