Commit 2d514f52 authored by Jose Fonseca's avatar Jose Fonseca

Implement lround for MSVC.

Should fix shader_runner build failure.
parent 1d22d002
......@@ -63,6 +63,11 @@ roundf(float x) {
return x >= 0.0f ? floorf(x + 0.5f) : ceilf(x - 0.5f);
}
static __inline long
lround(double x) {
return (long)round(x);
}
#ifndef va_copy
#ifdef __va_copy
#define va_copy(dest, src) __va_copy((dest), (src))
......
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