support windows compilation, upgrade to current uxnt.

This commit is contained in:
U-WIN-U2045GN0RNQ\Vítor Santos Costa
2011-03-09 00:02:21 +00:00
parent e4275b6361
commit 752fa4fc53
8 changed files with 53 additions and 55 deletions

View File

@@ -16,6 +16,10 @@
#endif
#include "Yap.h"
#ifdef __WINDOWS__
#include <windows.h>
#include <uxnt.h>
#endif
#include "YapHeap.h"
/* try not to pollute the SWI space */
#ifdef P
@@ -138,9 +142,6 @@ typedef enum
#if HAVE_SYS_PARAM_H
#include <sys/param.h> //MAXPATHLEN
#endif
#ifdef __WINDOWS__
#include <windows.h>
#endif
#if __YAP_PROLOG__
#include "pl-yap.h"
#if _WIN32
@@ -583,17 +584,6 @@ typedef double real;
/* uxnt package interface */
#if defined(__YAP_PROLOG__) && defined(__MINGW32__)
#define O_XOS 1
#define _XOS_ISFILE 0x01
#define _XOS_ISDIR 0x02
#define _XOS_FILE 0x0001 /* is a file */
#define _XOS_DIR 0x0002 /* is a directory */
#define XOS_DOWNCASE 0x01 /* _xos_canonical_filename() */
#define statfunc stat
#ifndef __WINDOWS__
#define __WINDOWS__ 1