mirror of
https://github.com/python-pillow/Pillow.git
synced 2024-12-25 01:16:16 +03:00
backup implementation of Round for windows platforms
This commit is contained in:
parent
2d634d3019
commit
9d00686f53
|
@ -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 */
|
||||
/* ------------------- */
|
||||
|
|
Loading…
Reference in New Issue
Block a user