Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
Synchronet
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
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Main
Synchronet
Commits
e3e6955a
Commit
e3e6955a
authored
3 years ago
by
Rob Swindell
Browse files
Options
Downloads
Patches
Plain Diff
Fix for MSVC build using #ifndef _MSC_VER
#pragma clang causes an error __attribute__ not supported
parent
34f05baa
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/conio/scale.c
+4
-1
4 additions, 1 deletion
src/conio/scale.c
src/syncterm/ripper.c
+2
-0
2 additions, 0 deletions
src/syncterm/ripper.c
with
6 additions
and
1 deletion
src/conio/scale.c
+
4
−
1
View file @
e3e6955a
...
...
@@ -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
];
...
...
This diff is collapsed.
Click to expand it.
src/syncterm/ripper.c
+
2
−
0
View file @
e3e6955a
...
...
@@ -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;
...
...
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