mirror of
https://github.com/micropython/micropython.git
synced 2025-09-01 15:30:31 +02:00
py: Use a dummy type for referring to extern structs
Fixes msvc linker warnings about mismatching sizes between the mp_obj_fdfile_t struct defined in file.c and the mp_uint_t declarations found in modsys.c and modbuiltins.c
This commit is contained in:
@@ -39,9 +39,9 @@
|
||||
/// \module sys - system specific functions
|
||||
|
||||
// defined per port; type of these is irrelevant, just need pointer
|
||||
extern mp_uint_t mp_sys_stdin_obj;
|
||||
extern mp_uint_t mp_sys_stdout_obj;
|
||||
extern mp_uint_t mp_sys_stderr_obj;
|
||||
extern struct _mp_dummy_t mp_sys_stdin_obj;
|
||||
extern struct _mp_dummy_t mp_sys_stdout_obj;
|
||||
extern struct _mp_dummy_t mp_sys_stderr_obj;
|
||||
|
||||
/// \constant version - Python language version that this implementation conforms to, as a string
|
||||
STATIC const MP_DEFINE_STR_OBJ(version_obj, "3.4.0");
|
||||
|
Reference in New Issue
Block a user