Skip to content

Commit

Permalink
backup implementation of Round for windows platforms
Browse files Browse the repository at this point in the history
  • Loading branch information
wiredfool committed Aug 24, 2014
1 parent 2d634d3 commit 9d00686
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions libImaging/Convert.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
/* ------------------- */
Expand Down

0 comments on commit 9d00686

Please sign in to comment.