1 Remove functions that aren't supported on Win32 / PDCurses.
3 diff -ur mingw32-ocaml-curses-20020319.orig/curses/functions.c mingw32-ocaml-curses-20020319.mingw/curses/functions.c
4 --- mingw32-ocaml-curses-20020319.orig/curses/functions.c 2002-03-18 01:20:00.000000000 +0000
5 +++ mingw32-ocaml-curses-20020319.mingw/curses/functions.c 2008-11-15 23:01:46.000000000 +0000
9 ML3(wresize,err,window,int,int)
11 ML2(resizeterm,err,int,int)
17 ML2d(vidputs,err,chtype,(char->unit))
18 BEG2 putc_function=ab;
19 r_err(vidputs(a_chtype(aa),putc_callback)); END
22 ML2d(tparm,string,string,int array)
23 BEG2 int t[10],i,n=Wosize_val(ab);
26 ML1d(bool_terminfo_variable,string*string*string,int) BEG1 arrayret(bool) END
27 ML1d(num_terminfo_variable,string*string*string,int) BEG1 arrayret(num) END
28 ML1d(str_terminfo_variable,string*string*string,int) BEG1 arrayret(str) END
38 /* Du travail pour les esclaves de M$ */
39 ML0d(winch_handler_on,unit)
40 BEG0 signal(SIGWINCH,winch_handler); CAMLreturn(Val_unit); END
42 ioctl(a_int(aa),TIOCGWINSZ,&ws);
43 r_int_int(ws.ws_row,ws.ws_col);
47 diff -ur mingw32-ocaml-curses-20020319.orig/curses/ml_curses.c mingw32-ocaml-curses-20020319.mingw/curses/ml_curses.c
48 --- mingw32-ocaml-curses-20020319.orig/curses/ml_curses.c 2002-03-18 01:20:00.000000000 +0000
49 +++ mingw32-ocaml-curses-20020319.mingw/curses/ml_curses.c 2008-11-15 22:57:53.000000000 +0000
51 #include <caml/fail.h>
57 /* Du travail pour les esclaves de M$ */
61 #include <sys/ioctl.h>
64 #define AWB(x) caml__dummy_##x=caml__dummy_##x; /* anti-warning bugware */