mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-01-24 16:24:11 +03:00
Remove backup implementation of Round for Windows platforms
This commit is contained in:
parent
fb0e7cdd91
commit
4ab80f663e
|
@ -43,13 +43,6 @@
|
|||
#define L(rgb) ((INT32)(rgb)[0] * 299 + (INT32)(rgb)[1] * 587 + (INT32)(rgb)[2] * 114)
|
||||
#define L24(rgb) ((rgb)[0] * 19595 + (rgb)[1] * 38470 + (rgb)[2] * 7471 + 0x8000)
|
||||
|
||||
#ifndef round
|
||||
double
|
||||
round(double x) {
|
||||
return floor(x + 0.5);
|
||||
}
|
||||
#endif
|
||||
|
||||
/* ------------------- */
|
||||
/* 1 (bit) conversions */
|
||||
/* ------------------- */
|
||||
|
|
Loading…
Reference in New Issue
Block a user