Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
M
marlin-anet-a8
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
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
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Jonas Leder
marlin-anet-a8
Commits
f6a799c7
Commit
f6a799c7
authored
5 years ago
by
Marcio T
Committed by
Scott Lahteine
5 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Allow compile under Windows Subsystem for Linux (#15606)
parent
82fb0460
Loading
Loading
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
Marlin/src/HAL/HAL_AVR/HAL.h
+8
-0
8 additions, 0 deletions
Marlin/src/HAL/HAL_AVR/HAL.h
Marlin/src/core/macros.h
+1
-1
1 addition, 1 deletion
Marlin/src/core/macros.h
with
9 additions
and
1 deletion
Marlin/src/HAL/HAL_AVR/HAL.h
+
8
−
0
View file @
f6a799c7
...
@@ -38,6 +38,14 @@
...
@@ -38,6 +38,14 @@
#include
<avr/interrupt.h>
#include
<avr/interrupt.h>
#include
<avr/io.h>
#include
<avr/io.h>
#ifndef pgm_read_ptr
// Compatibility for avr-libc 1.8.0-4.1 included with Ubuntu for
// Windows Subsystem for Linux on Windows 10 as of 10/18/2019
#define pgm_read_ptr_far(address_long) (void*)__ELPM_word((uint32_t)(address_long))
#define pgm_read_ptr_near(address_short) (void*)__LPM_word((uint16_t)(address_short))
#define pgm_read_ptr(address_short) pgm_read_ptr_near(address_short)
#endif
// ------------------------
// ------------------------
// Defines
// Defines
// ------------------------
// ------------------------
...
...
This diff is collapsed.
Click to expand it.
Marlin/src/core/macros.h
+
1
−
1
View file @
f6a799c7
...
@@ -279,7 +279,7 @@
...
@@ -279,7 +279,7 @@
#define ATAN2(y, x) atan2f(y, x)
#define ATAN2(y, x) atan2f(y, x)
#define POW(x, y) powf(x, y)
#define POW(x, y) powf(x, y)
#define SQRT(x) sqrtf(x)
#define SQRT(x) sqrtf(x)
#define RSQRT(x) (1 / sqrtf(x))
#define RSQRT(x) (1
.0f
/ sqrtf(x))
#define CEIL(x) ceilf(x)
#define CEIL(x) ceilf(x)
#define FLOOR(x) floorf(x)
#define FLOOR(x) floorf(x)
#define LROUND(x) lroundf(x)
#define LROUND(x) lroundf(x)
...
...
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