improve SWI emulation in WIN32
This commit is contained in:
1
include/SWI-Prolog.h
Normal file → Executable file
1
include/SWI-Prolog.h
Normal file → Executable file
@@ -456,6 +456,7 @@ UNICODE file functions.
|
||||
/* Make IOSTREAM known to Prolog */
|
||||
PL_EXPORT(int) PL_open_stream(term_t t, IOSTREAM *s);
|
||||
PL_EXPORT(int) PL_unify_stream(term_t t, IOSTREAM *s);
|
||||
#define PL_open_stream PL_unify_stream
|
||||
PL_EXPORT(int) PL_get_stream_handle(term_t t, IOSTREAM **s);
|
||||
PL_EXPORT(int) PL_release_stream(IOSTREAM *s);
|
||||
|
||||
|
2
include/SWI-Stream.h
Normal file → Executable file
2
include/SWI-Stream.h
Normal file → Executable file
@@ -50,8 +50,8 @@ typedef __int64 int64_t;
|
||||
#if (_MSC_VER < 1300) && !defined(__MINGW32__)
|
||||
typedef long intptr_t;
|
||||
typedef unsigned long uintptr_t;
|
||||
#endif
|
||||
typedef intptr_t ssize_t; /* signed version of size_t */
|
||||
#endif
|
||||
#else
|
||||
#include <unistd.h>
|
||||
#include <inttypes.h> /* more portable than stdint.h */
|
||||
|
Reference in New Issue
Block a user