mirror of
https://github.com/python-pillow/Pillow.git
synced 2024-12-26 01:46:18 +03:00
backup implementation of Round for windows platforms
This commit is contained in:
parent
b2ea0941f7
commit
97b5c72630
|
@ -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