backup implementation of Round for windows platforms

This commit is contained in:
wiredfool 2014-08-22 16:14:48 -07:00
parent 2d634d3019
commit 9d00686f53

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 */
/* ------------------- */