Revision 9e52fefd63f9ea2523af13e95327706864e1460b authored by Simon Urbanek on 08 August 1977, 00:00:00 UTC, committed by Gabor Csardi on 08 August 1977, 00:00:00 UTC
1 parent 5c1f3fc
Raw File
winfix.h
#include <string.h>
#include <fcntl.h> /* for _O_BINARY */

/* our implementation from windows/forknt.c */
extern int fork(); 

/* our own implementation of select using WaitForMultipleObjects */
int pipe_select(int xfd, fd_set *sr, fd_set *sw, fd_set *se, struct timeval *timeout);

#define sleep(X) Sleep((X) * 1000)
#define pipe(fds) _pipe(fds, 4096, _O_BINARY)

/* Windows includes re-define ERROR which is used by R .. */
#ifdef ERROR
#undef ERROR
#endif

back to top