summaryrefslogtreecommitdiffstats
path: root/otherlibs/win32unix/unixsupport.h
diff options
context:
space:
mode:
authorXavier Leroy <xavier.leroy@inria.fr>1997-09-03 14:38:02 +0000
committerXavier Leroy <xavier.leroy@inria.fr>1997-09-03 14:38:02 +0000
commit1e664b94467a65841e63d2dea50cd1f64e8a3258 (patch)
tree377f874869769eb40984803bcc6b6648a06b68e4 /otherlibs/win32unix/unixsupport.h
parent47745356d34649ee4c531fea679e3a008cf90197 (diff)
Implementation du type file_descr par le type HANDLE de Win32. Court-circuite la libc de MSVC.
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@1700 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
Diffstat (limited to 'otherlibs/win32unix/unixsupport.h')
-rw-r--r--otherlibs/win32unix/unixsupport.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/otherlibs/win32unix/unixsupport.h b/otherlibs/win32unix/unixsupport.h
index e8faca3f6..f2b2b2941 100644
--- a/otherlibs/win32unix/unixsupport.h
+++ b/otherlibs/win32unix/unixsupport.h
@@ -11,6 +11,7 @@
/* $Id$ */
+#include <winbase.h>
#include <stdlib.h>
/* Include io.h in current dir, which is a copy of the system's io.h,
not io.h from ../../byterun */
@@ -18,6 +19,10 @@
#include <direct.h>
#include <process.h>
+#define Handle_val(v) (*((HANDLE *)(v)))
+
+extern value win_alloc_handle(HANDLE);
+
#define Nothing ((value) 0)
extern void unix_error (int errcode, char * cmdname, value arg);