backup implementation of Round for windows platforms

This commit is contained in:
wiredfool 2014-08-22 16:14:48 -07:00
parent b2ea0941f7
commit 97b5c72630

View File

@ -49,6 +49,12 @@
#define L(rgb)\
((INT32) (rgb)[0]*299 + (INT32) (rgb)[1]*587 + (INT32) (rgb)[2]*114)
#ifndef round
double round(double x) {
return floor(x+0.5);
}
#endif
/* ------------------- */
/* 1 (bit) conversions */
/* ------------------- */