summaryrefslogtreecommitdiffstats
path: root/lib/libI77/rawio.h
diff options
context:
space:
mode:
Diffstat (limited to 'lib/libI77/rawio.h')
-rw-r--r--lib/libI77/rawio.h14
1 files changed, 4 insertions, 10 deletions
diff --git a/lib/libI77/rawio.h b/lib/libI77/rawio.h
index 3e2c750..4cbd847 100644
--- a/lib/libI77/rawio.h
+++ b/lib/libI77/rawio.h
@@ -1,38 +1,32 @@
#ifdef KR_headers
-#ifndef __FreeBSD__
extern FILE *fdopen();
-#endif
#else
#ifdef MSDOS
#include "io.h"
+#ifndef WATCOM
#define close _close
#define creat _creat
#define open _open
#define read _read
#define write _write
-#endif
+#endif /*WATCOM*/
+#endif /*MSDOS*/
#ifdef __cplusplus
extern "C" {
#endif
#ifndef MSDOS
#ifdef OPEN_DECL
-#ifndef __FreeBSD__
extern int creat(const char*,int), open(const char*,int);
#endif
-#endif
-#ifndef __FreeBSD__
extern int close(int);
extern int read(int,void*,size_t), write(int,void*,size_t);
extern int unlink(const char*);
-#endif
#ifndef _POSIX_SOURCE
#ifndef NON_UNIX_STDIO
-#ifndef __FreeBSD__
extern FILE *fdopen(int, const char*);
#endif
#endif
-#endif
-#endif
+#endif /*KR_HEADERS*/
extern char *mktemp(char*);
OpenPOWER on IntegriCloud