Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
flow3r firmware
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
flow3r
flow3r firmware
Commits
1a811ce1
Commit
1a811ce1
authored
1 year ago
by
Anon
Browse files
Options
Downloads
Patches
Plain Diff
micropython: remove _DIRENT_HAVE_D_TYPE and _DIRENT_HAVE_D_INO guards
parent
480ab2af
No related branches found
No related tags found
1 merge request
!105
py: Create file manager app
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
components/micropython/vendor/extmod/vfs_posix.c
+0
-9
0 additions, 9 deletions
components/micropython/vendor/extmod/vfs_posix.c
with
0 additions
and
9 deletions
components/micropython/vendor/extmod/vfs_posix.c
+
0
−
9
View file @
1a811ce1
...
...
@@ -206,7 +206,6 @@ STATIC mp_obj_t vfs_posix_ilistdir_it_iternext(mp_obj_t self_in) {
t
->
items
[
0
]
=
mp_obj_new_bytes
((
const
byte
*
)
fn
,
strlen
(
fn
));
}
#ifdef _DIRENT_HAVE_D_TYPE
#ifdef DTTOIF
t
->
items
[
1
]
=
MP_OBJ_NEW_SMALL_INT
(
DTTOIF
(
dirent
->
d_type
));
#else
...
...
@@ -218,16 +217,8 @@ STATIC mp_obj_t vfs_posix_ilistdir_it_iternext(mp_obj_t self_in) {
t
->
items
[
1
]
=
MP_OBJ_NEW_SMALL_INT
(
dirent
->
d_type
);
}
#endif
#else
// DT_UNKNOWN should have 0 value on any reasonable system
t
->
items
[
1
]
=
MP_OBJ_NEW_SMALL_INT
(
0
);
#endif
#ifdef _DIRENT_HAVE_D_INO
t
->
items
[
2
]
=
MP_OBJ_NEW_SMALL_INT
(
dirent
->
d_ino
);
#else
t
->
items
[
2
]
=
MP_OBJ_NEW_SMALL_INT
(
0
);
#endif
return
MP_OBJ_FROM_PTR
(
t
);
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment