improve C-interface and SWI comptaibility a bit.

git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@2292 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
This commit is contained in:
vsc
2008-07-24 16:02:04 +00:00
parent 778215b85c
commit e1866e2917
12 changed files with 489 additions and 26 deletions

View File

@@ -2,6 +2,14 @@
#ifndef _PL_STREAM_H
#define _PL_STREAM_H
#ifndef X_API
#if defined(_MSC_VER) && defined(YAP_EXPORTS)
#define X_API __declspec(dllexport)
#else
#define X_API
#endif
#endif
/* This appears to make the wide-character support compile and work
on HPUX 11.23. There really should be a cleaner way ...
*/
@@ -138,5 +146,8 @@ typedef struct io_stream
intptr_t reserved[3]; /* reserved for extension */
} IOSTREAM;
#define PL_EXPORT(type) extern X_API type
extern X_API int PL_unify_stream(term_t t, IOSTREAM *s);
#endif /*_PL_STREAM_H*/