Skip to content

Commit 8153920

Browse files
committed
include
1 parent 6eaa16a commit 8153920

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

mypyc/codegen/emitmodule.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -554,6 +554,8 @@ def generate_c_for_modules(self) -> list[tuple[str, str]]:
554554
base_emitter.emit_line(f'#include "{name}"')
555555
base_emitter.emit_line(f'#include "__native{self.short_group_suffix}.h"')
556556
base_emitter.emit_line(f'#include "__native_internal{self.short_group_suffix}.h"')
557+
base_emitter.emit_line('#include <tupleobject.h>')
558+
557559
emitter = base_emitter
558560

559561
self.generate_literal_tables()

mypyc/lib-rt/init.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,6 @@
44
struct ExcDummyStruct _CPy_ExcDummyStruct = { PyObject_HEAD_INIT(NULL) };
55
PyObject *_CPy_ExcDummy = (PyObject *)&_CPy_ExcDummyStruct;
66

7-
// System-wide empty tuple constant
8-
PyObject * __mypyc_empty_tuple__ = NULL;
97

108
// Because its dynamic linker is more restricted than linux/OS X,
119
// Windows doesn't allow initializing globals with values from

0 commit comments

Comments
 (0)