diff options
author | Peter Breitenlohner <peb@mppmu.mpg.de> | 2010-02-22 12:09:38 +0000 |
---|---|---|
committer | Peter Breitenlohner <peb@mppmu.mpg.de> | 2010-02-22 12:09:38 +0000 |
commit | b287d7f6a13823ea17e0bd415981d3a5953ca703 (patch) | |
tree | a420b28a35f7761f064d50bb610dbb2b46c71486 /Build/source/texk/dviljk/dvi2xx.c | |
parent | 5fd6fd3479fcbbda52ebca7b5e80a5aaa1add69f (diff) |
build system: various small fixes for mingw32 cross compilation
still incomplete
git-svn-id: svn://tug.org/texlive/trunk@17141 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source/texk/dviljk/dvi2xx.c')
-rw-r--r-- | Build/source/texk/dviljk/dvi2xx.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/Build/source/texk/dviljk/dvi2xx.c b/Build/source/texk/dviljk/dvi2xx.c index 68d384c8bea..7a34413aad6 100644 --- a/Build/source/texk/dviljk/dvi2xx.c +++ b/Build/source/texk/dviljk/dvi2xx.c @@ -3526,6 +3526,7 @@ void AllDone(bool PFlag) /***************************** DoSpecial ***************************/ /*********************************************************************/ +#define PATTERN LJPATTERN typedef enum { ORIENTATION, RESETPOINTS, @@ -3703,12 +3704,15 @@ bool ParseDiagram(char *str) #ifndef HAVE_MKTEMP #define mktemp tmpnam #endif -char * mkdtemp ( char * template ) +static char * mkdtemp ( char * template ) { if ( mktemp(template) == NULL || template[0] == '\0' ) { if ( errno == 0 ) errno = EINVAL; /* if it's tmpnam() */ return NULL; } +#ifdef WIN32 +#define mkdir(path, mode) mkdir(path) +#endif if ( mkdir(template, 0700) == -1 ) { return NULL; } |