Commit 70d08b70 authored by Rob Swindell's avatar Rob Swindell 💬
Browse files

Fix for MSVC build using #ifndef _MSC_VER

#pragma clang causes an error
__attribute__ not supported
parent cb74560b
......@@ -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;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment