WIN32 fixes: work in progress.

This commit is contained in:
Vitor Santos Costa
2009-04-20 16:22:47 -05:00
parent 2c00c4a00b
commit 50207cb52a
7 changed files with 73 additions and 25 deletions

View File

@@ -34,6 +34,12 @@
#endif
#include "pl-incl.h"
#ifdef __YAP_PROLOG__
#ifdef __MINGW32__
#define O_XOS 1
#define statfunc _xos_stat
#endif
#endif
#include "pl-ctype.h"
#include "pl-utf8.h"
#undef abs
@@ -485,7 +491,8 @@ static void
initRandom(void)
{ unsigned int seed;
#ifdef __WINDOWS__
#if defined(__WINDOWS__) && !defined(__MINGW32__)
seed = (unsigned int)GetTickCount();
#else
#ifdef HAVE_GETTIMEOFDAY
@@ -810,6 +817,7 @@ OsPath(const char *p, char *buf)
#endif /*__unix__*/
#if O_XOS
char *
PrologPath(const char *p, char *buf, size_t len)
{ int flags = (trueFeature(FILE_CASE_FEATURE) ? 0 : XOS_DOWNCASE);