Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
Main
Synchronet
Commits
70d08b70
Commit
70d08b70
authored
May 15, 2021
by
Rob Swindell
💬
Browse files
Fix for MSVC build using #ifndef _MSC_VER
#pragma clang causes an error __attribute__ not supported
parent
cb74560b
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
1 deletion
+6
-1
src/conio/scale.c
src/conio/scale.c
+4
-1
src/syncterm/ripper.c
src/syncterm/ripper.c
+2
-0
No files found.
src/conio/scale.c
View file @
70d08b70
...
...
@@ -625,7 +625,10 @@ pointy_scale3(uint32_t* src, uint32_t* dest, int width, int height)
}
}
static
__attribute__
((
always_inline
))
static
#ifndef _MSC_VER
__attribute__
((
always_inline
))
#endif
uint32_t
blend
(
const
uint32_t
c1
,
const
uint32_t
c2
,
const
double
weight
)
{
uint8_t
yuv1
[
4
];
...
...
src/syncterm/ripper.c
View file @
70d08b70
...
...
@@ -10156,7 +10156,9 @@ rip_bezier(int x1, int y1, int x2, int y2, int x3, int y3, int x4, int y4, int c
i = 0;
targets[i++] = x1;
targets[i++] = y1;
#ifndef _MSC_VER
#pragma clang loop vectorize(enable)
#endif
for (step = 1; step < cnt; step++) {
double tf = ((double)step) / cnt;
double tr = ((double)(cnt - step)) / cnt;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment