ReactOS 0.4.16-dev-297-gc569aee
io.h
Go to the documentation of this file.
1/* @(#)io.h 1.1 09/07/13 Copyright 2009 J. Schilling */
2/*
3 * DOS io.h abstraction
4 *
5 * Copyright (c) 2009 J. Schilling
6 */
7/*
8 * The contents of this file are subject to the terms of the
9 * Common Development and Distribution License, Version 1.0 only
10 * (the "License"). You may not use this file except in compliance
11 * with the License.
12 *
13 * See the file CDDL.Schily.txt in this distribution for details.
14 *
15 * When distributing Covered Code, include this CDDL HEADER in each
16 * file and include the License file CDDL.Schily.txt from this distribution.
17 */
18
19#ifndef _SCHILY_IO_H
20#define _SCHILY_IO_H
21
22#ifndef _SCHILY_MCONFIG_H
23#include <schily/mconfig.h>
24#endif
25#ifndef _SCHILY_FCNTL_H
26#include <schily/fcntl.h>
27#endif
28
29#ifndef NEED_O_BINARY
30#if O_BINARY != 0
31#define NEED_O_BINARY
32#endif
33#endif
34
35#if defined(HAVE_IO_H) && defined(NEED_O_BINARY)
36#ifndef _INCL_IO_H
37#include <io.h>
38#define _INCL_IO_H
39#endif
40#else /* ! defined(HAVE_IO_H) && defined(NEED_O_BINARY) */
41
42#define setmode(f, m)
43
44#endif
45
46#endif /* _SCHILY_IO_H */