From 82b1a6f62a6209ab76090b9d804ffe15f1d23f5b Mon Sep 17 00:00:00 2001 From: Vitor Santos Costa Date: Mon, 20 Jul 2009 23:13:36 -0500 Subject: [PATCH] make it compile back in Unix. --- packages/PLStream/pl-os.c | 3 ++- packages/PLStream/pl-os.h | 5 ----- 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/packages/PLStream/pl-os.c b/packages/PLStream/pl-os.c index 62dabd7b3..1b2237cd0 100755 --- a/packages/PLStream/pl-os.c +++ b/packages/PLStream/pl-os.c @@ -474,8 +474,9 @@ FreeMemory(void) Depreciated according to Linux manpage, suggested by Solaris manpage. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */ - +#ifdef __MINGW32__ __stdcall unsigned long GetTickCount(void); +#endif void setRandom(unsigned int *seedp) diff --git a/packages/PLStream/pl-os.h b/packages/PLStream/pl-os.h index 669f897a1..238cbb8a1 100755 --- a/packages/PLStream/pl-os.h +++ b/packages/PLStream/pl-os.h @@ -236,7 +236,6 @@ extern int System(char *command); extern char *ExpandOneFile(const char *spec, char *file); extern char *AbsoluteFile(const char *spec, char *path); extern int IsAbsolutePath(const char *spec); -extern char *ReadLink(const char *f, char *buf); extern char *DeRefLink(const char *link, char *buf); extern bool ExistsDirectory(const char *path); extern bool AccessFile(const char *path, int mode); @@ -245,14 +244,10 @@ extern char *OsPath(const char *plpath, char *path); extern char *Getenv(const char *, char *buf, size_t buflen); extern char *BaseName(const char *f); extern time_t LastModifiedFile(const char *f); -extern int64_t SizeFile(const char *path); extern bool ExistsFile(const char *path); extern atom_t TemporaryFile(const char *id); extern int RemoveFile(const char *path); -extern bool SameFile(const char *f1, const char *f2); -extern bool RenameFile(const char *old, const char *new); extern bool ChDir(const char *path); -extern bool MarkExecutable(const char *name); extern char *PrologPath(const char *ospath, char *path, size_t len);