aboutsummaryrefslogtreecommitdiff
path: root/py/stream.h
diff options
context:
space:
mode:
authorPaul Sokolovsky <pfalcon@users.sourceforge.net>2016-07-25 00:16:51 +0300
committerPaul Sokolovsky <pfalcon@users.sourceforge.net>2016-07-25 00:16:51 +0300
commit1a7e28d8b7e98dc940e16fc16aad1c79c385977d (patch)
tree11705e404dc0253a886a0006f74c4a768e3e3e3d /py/stream.h
parent5a38694f559745da8b03734a1736817016537d5e (diff)
py/stream.h: Move mp_stream_write_adaptor() inside ifdef block.
Diffstat (limited to 'py/stream.h')
-rw-r--r--py/stream.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/py/stream.h b/py/stream.h
index b0f45e2f0..7d4393675 100644
--- a/py/stream.h
+++ b/py/stream.h
@@ -80,6 +80,8 @@ mp_uint_t mp_stream_rw(mp_obj_t stream, void *buf, mp_uint_t size, int *errcode,
#define mp_stream_write_exactly(stream, buf, size, err) mp_stream_rw(stream, (byte*)buf, size, err, MP_STREAM_RW_WRITE)
#define mp_stream_read_exactly(stream, buf, size, err) mp_stream_rw(stream, buf, size, err, MP_STREAM_RW_READ)
+void mp_stream_write_adaptor(void *self, const char *buf, size_t len);
+
#if MICROPY_STREAMS_NON_BLOCK
// TODO: This is POSIX-specific (but then POSIX is the only real thing,
// and anything else just emulates it, right?)
@@ -89,4 +91,3 @@ mp_uint_t mp_stream_rw(mp_obj_t stream, void *buf, mp_uint_t size, int *errcode,
#endif
#endif // __MICROPY_INCLUDED_PY_STREAM_H__
-void mp_stream_write_adaptor(void *self, const char *buf, size_t len);