/* for portable encoding of double values */
#if !__STDC__
+#ifndef WIN32
extern double frexp _ARG_((double, int *));
extern double ldexp _ARG_((double, int));
#endif
+#endif
#if !_hdr_mman && !_sys_mman
extern Void_t *mmap _ARG_((Void_t *, size_t, int, int, int, off_t));
#endif
#endif /* !__STDC__ && !_hdr_stdlib */
+#ifdef WIN32
+#undef SF_ERROR
+#include <io.h>
+#define SF_ERROR 0000400 /* an error happened */
+#else
#if !_hdr_unistd
extern int close _ARG_((int));
extern ssize_t read _ARG_((int, void *, size_t));
#endif
#endif /*_hdr_unistd*/
+#endif /* WIN32 */
#if _lib_bcopy && !_proto_bcopy
extern void bcopy _ARG_((const void *, void *, size_t));
extern time_t time _ARG_((time_t *));
extern int waitpid _ARG_((int, int *, int));
+#ifndef WIN32
extern void _exit _ARG_((int));
+#endif
typedef int (*Onexit_f) _ARG_((void));
extern Onexit_f onexit _ARG_((Onexit_f));