Skip to content
Snippets Groups Projects
Commit 70d08b70 authored by Rob Swindell's avatar Rob Swindell :speech_balloon:
Browse files

Fix for MSVC build using #ifndef _MSC_VER

#pragma clang causes an error
__attribute__ not supported
parent cb74560b
No related branches found
No related tags found
1 merge request!463MRC mods by Codefenix (2024-10-20)
......@@ -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];
......
......@@ -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;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment