diff options
author | stijn <stinos@zoho.com> | 2015-04-09 12:27:15 +0200 |
---|---|---|
committer | stijn <stinos@zoho.com> | 2015-04-09 15:03:22 +0200 |
commit | e50cff69bb0dbca8ed363b5c7c459e01cb7f00ac (patch) | |
tree | fd9fa1e97ff08abe0a33a76a10c95b0f82d36a49 /py/modbuiltins.c | |
parent | 36cc84a2a97aea289ccab851b55de590b91f86f5 (diff) | |
download | micropython-e50cff69bb0dbca8ed363b5c7c459e01cb7f00ac.tar.gz micropython-e50cff69bb0dbca8ed363b5c7c459e01cb7f00ac.zip |
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
Diffstat (limited to 'py/modbuiltins.c')
-rw-r--r-- | py/modbuiltins.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/py/modbuiltins.c b/py/modbuiltins.c index 0985e25bf4..04141edec9 100644 --- a/py/modbuiltins.c +++ b/py/modbuiltins.c @@ -42,7 +42,7 @@ #endif #if MICROPY_PY_IO -extern mp_uint_t mp_sys_stdout_obj; // type is irrelevant, just need pointer +extern struct _mp_dummy_t mp_sys_stdout_obj; // type is irrelevant, just need pointer #endif // args[0] is function from class body |