Skip to content

Commit 1a7e28d

Browse files
committed
py/stream.h: Move mp_stream_write_adaptor() inside ifdef block.
1 parent 5a38694 commit 1a7e28d

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

py/stream.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,8 @@ mp_uint_t mp_stream_rw(mp_obj_t stream, void *buf, mp_uint_t size, int *errcode,
8080
#define mp_stream_write_exactly(stream, buf, size, err) mp_stream_rw(stream, (byte*)buf, size, err, MP_STREAM_RW_WRITE)
8181
#define mp_stream_read_exactly(stream, buf, size, err) mp_stream_rw(stream, buf, size, err, MP_STREAM_RW_READ)
8282

83+
void mp_stream_write_adaptor(void *self, const char *buf, size_t len);
84+
8385
#if MICROPY_STREAMS_NON_BLOCK
8486
// TODO: This is POSIX-specific (but then POSIX is the only real thing,
8587
// 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,
8991
#endif
9092

9193
#endif // __MICROPY_INCLUDED_PY_STREAM_H__
92-
void mp_stream_write_adaptor(void *self, const char *buf, size_t len);

0 commit comments

Comments
 (0)