summaryrefslogtreecommitdiff
path: root/Build/source/texk/web2c/synctexdir/synctex_main.c
diff options
context:
space:
mode:
Diffstat (limited to 'Build/source/texk/web2c/synctexdir/synctex_main.c')
-rw-r--r--Build/source/texk/web2c/synctexdir/synctex_main.c11
1 files changed, 10 insertions, 1 deletions
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[]);