Skip to content

Commit

Permalink
Merge pull request #6693 from cgohlke/patch-3
Browse files Browse the repository at this point in the history
Remove backup implementation of Round for Windows platforms
  • Loading branch information
radarhere authored Oct 29, 2022
2 parents dc0e4dd + 4ab80f6 commit a048d16
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions src/libImaging/Convert.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
/* ------------------- */
Expand Down

0 comments on commit a048d16

Please sign in to comment.