diff options
Diffstat (limited to 'Build/source/texk/web2c/luatexdir/luatex.c')
-rw-r--r-- | Build/source/texk/web2c/luatexdir/luatex.c | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/Build/source/texk/web2c/luatexdir/luatex.c b/Build/source/texk/web2c/luatexdir/luatex.c index 2af2575af1a..120f05dd0bd 100644 --- a/Build/source/texk/web2c/luatexdir/luatex.c +++ b/Build/source/texk/web2c/luatexdir/luatex.c @@ -9,6 +9,16 @@ changed to include texd.h or mfd.h. The ?d.h file is what #defines TeX or MF, which avoids the need for a special Makefile rule. */ +#ifdef _MSC_VER +#define LUATEXC_MAIN +#include <time.h> /* For `struct tm'. */ +#if defined (HAVE_SYS_TIME_H) +# include <sys/time.h> +#elif defined (HAVE_SYS_TIMEB_H) +# include <sys/timeb.h> +#endif +#endif + #include "ptexlib.h" #include "luatex.h" #include "lua/luatex-api.h" @@ -36,13 +46,14 @@ const char *engine_name = "luatex"; /* the name of this engine */ #include <kpathsea/concatn.h> #endif - +#ifndef _MSC_VER #include <time.h> /* For `struct tm'. */ #if defined (HAVE_SYS_TIME_H) # include <sys/time.h> #elif defined (HAVE_SYS_TIMEB_H) # include <sys/timeb.h> #endif +#endif #if defined(__STDC__) # include <locale.h> |