summaryrefslogtreecommitdiff
path: root/Build/source/texk/kpathsea/win32lib.h
diff options
context:
space:
mode:
authorAkira Kakuto <kakuto@fuk.kindai.ac.jp>2011-08-02 13:05:11 +0000
committerAkira Kakuto <kakuto@fuk.kindai.ac.jp>2011-08-02 13:05:11 +0000
commit8d812296011b75f9bd787ff9ebe574a4265a11c9 (patch)
treefc93270e32c02813c3eb677abb486e31d9d2e50a /Build/source/texk/kpathsea/win32lib.h
parent9a634e078306d7a674684828beaabdc6f14c37cc (diff)
update win32lib.[ch]
git-svn-id: svn://tug.org/texlive/trunk@23315 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source/texk/kpathsea/win32lib.h')
-rw-r--r--Build/source/texk/kpathsea/win32lib.h17
1 files changed, 12 insertions, 5 deletions
diff --git a/Build/source/texk/kpathsea/win32lib.h b/Build/source/texk/kpathsea/win32lib.h
index 89d35166a4b..bb1edad7d15 100644
--- a/Build/source/texk/kpathsea/win32lib.h
+++ b/Build/source/texk/kpathsea/win32lib.h
@@ -222,7 +222,11 @@
#define _WINSOCKAPI_ 1
#endif
+#define boolean saved_boolean
#include <windows.h>
+#undef boolean
+
+#include <kpathsea/types.h>
/* Defines size_t and alloca (). */
#include <malloc.h>
@@ -240,6 +244,11 @@
#undef min
#endif
+extern KPSEDLL FILE *kpathsea_win32_popen (kpathsea kpse, char *cmd, char *mode);
+extern KPSEDLL int kpathsea_win32_pclose (kpathsea kpse, FILE *f);
+extern KPSEDLL struct passwd *kpathsea_getpwnam (kpathsea kpse, char *name);
+extern KPSEDLL int kpathsea_win32_system(kpathsea kpse, char *cmd);
+
#if defined (KPSE_COMPAT_API)
extern KPSEDLL struct passwd *getpwnam (char *name);
#define MAX_PIPES 128
@@ -252,16 +261,14 @@ extern KPSEDLL int pclose(FILE * f);
extern KPSEDLL int system(char * cmd);
#endif /* KPSE_COMPAT_API */
-extern KPSEDLL void xfseek64 (FILE *f, __int64 offset, int wherefrom, char *fname);
-extern KPSEDLL __int64 xftell64 (FILE *f, char *fname);
+extern KPSEDLL void xfseek64 (FILE *f, __int64 offset, int wherefrom, const char *fname);
+extern KPSEDLL __int64 xftell64 (FILE *f, const char *fname);
extern KPSEDLL void texlive_gs_init(void);
extern KPSEDLL int getlongpath (char *output, char *input, int len);
extern KPSEDLL char *get_home_directory (void);
-/* I don't define xfseeko and xftello in order to find where they are
- used and to rewrite them by hand using xfseek64 and xftell64.
+#define off_t __int64
#define xfseeko xfseek64
#define xftello xftell64
-*/
#endif /* not KPATHSEA_WIN32LIB_H */