Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
M
micropython
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
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
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
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
card10
micropython
Commits
26a95ae1
Commit
26a95ae1
authored
10 years ago
by
Damien George
Browse files
Options
Downloads
Patches
Plain Diff
windows: Move include of malloc.h outside #ifdef msvc.
parent
4297fed1
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
windows/mpconfigport.h
+3
-1
3 additions, 1 deletion
windows/mpconfigport.h
with
3 additions
and
1 deletion
windows/mpconfigport.h
+
3
−
1
View file @
26a95ae1
...
...
@@ -76,6 +76,9 @@ extern const struct _mp_obj_module_t mp_module_time;
#define MICROPY_PORT_BUILTIN_MODULES \
{ MP_OBJ_NEW_QSTR(MP_QSTR_time), (mp_obj_t)&mp_module_time }, \
// We need to provide a declaration/definition of alloca()
#include
<malloc.h>
#include
"realpath.h"
#include
"init.h"
...
...
@@ -114,7 +117,6 @@ void msec_sleep(double msec);
#include
<stddef.h>
//for NULL
#include
<assert.h>
//for assert
#include
<malloc.h>
//for alloca()
// Functions implemented in platform code
...
...
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