summaryrefslogtreecommitdiff
path: root/Build/source/texk/tex4htk/tex4ht.c
diff options
context:
space:
mode:
authorPeter Breitenlohner <peb@mppmu.mpg.de>2010-02-22 12:09:38 +0000
committerPeter Breitenlohner <peb@mppmu.mpg.de>2010-02-22 12:09:38 +0000
commitb287d7f6a13823ea17e0bd415981d3a5953ca703 (patch)
treea420b28a35f7761f064d50bb610dbb2b46c71486 /Build/source/texk/tex4htk/tex4ht.c
parent5fd6fd3479fcbbda52ebca7b5e80a5aaa1add69f (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/tex4htk/tex4ht.c')
-rw-r--r--Build/source/texk/tex4htk/tex4ht.c13
1 files changed, 8 insertions, 5 deletions
diff --git a/Build/source/texk/tex4htk/tex4ht.c b/Build/source/texk/tex4htk/tex4ht.c
index 4df33a0e413..5b21ebf4d94 100644
--- a/Build/source/texk/tex4htk/tex4ht.c
+++ b/Build/source/texk/tex4htk/tex4ht.c
@@ -201,6 +201,9 @@
#ifdef KPATHSEA
+#ifdef __MINGW32__
+#define HAVE_BOOLEAN 1
+#endif /* __MINGW32__ */
#include <kpathsea/config.h>
#include <kpathsea/c-errno.h>
#include <kpathsea/c-ctype.h>
@@ -1325,7 +1328,7 @@ static FILE* search_file_ext( ARG_III(const char *, const U_CHAR *, const U_CHAR
#if defined(DOS_WIN32) || defined(__DJGPP__)
- static BOOL is_forward_slash( ARG_I(char*) );
+ static BOOL is_forward_slash( ARG_I(const char*) );
#endif
@@ -3409,7 +3412,7 @@ static int math_class_of
#if defined(DOS_WIN32) || defined(__MSDOS__)
-char *get_env_dir
+static char *get_env_dir
#ifdef ANSI
#define SEP ,
(
@@ -3435,7 +3438,7 @@ char *get_env_dir
p = (char *) malloc(i+12);
if(p == NULL) return NULL;
strncpy(p, progname, i+1);
- (IGNORED) strcpy((char *) &p[i+1], (char *) "tex4ht.env");
+ (IGNORED) strcpy((char *) &p[i+1], (const char *) "tex4ht.env");
return p;
}
@@ -4217,13 +4220,13 @@ static BOOL is_forward_slash
#ifdef ANSI
#define SEP ,
(
- char* str
+ const char* str
)
#undef SEP
#else
#define SEP ;
(str)
- char* str
+ const char* str
;
#undef SEP
#endif