mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-02-24 07:40:32 +03:00
Merge pull request #6693 from cgohlke/patch-3
Remove backup implementation of Round for Windows platforms
This commit is contained in:
commit
a048d163d6
|
@ -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