Skip to content

Commit 3119162

Browse files
committed
Fix build
1 parent 2fe8d43 commit 3119162

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

mypyc/lib-rt/librt_strings.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@
1818
((BytesWriterObject *)data)->len += sizeof(type); \
1919
} while (0)
2020

21+
#ifdef MYPYC_EXPERIMENTAL
22+
2123
static PyTypeObject BytesWriterType;
2224

2325
static bool
@@ -377,6 +379,8 @@ BytesWriter_len_internal(PyObject *self) {
377379
return writer->len << 1;
378380
}
379381

382+
#endif
383+
380384
static PyMethodDef librt_strings_module_methods[] = {
381385
{NULL, NULL, 0, NULL}
382386
};

0 commit comments

Comments
 (0)