Remove backup implementation of Round for Windows platforms

This commit is contained in:
Christoph Gohlke 2022-10-27 08:15:36 -07:00 committed by GitHub
parent fb0e7cdd91
commit 4ab80f663e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -43,13 +43,6 @@
#define L(rgb) ((INT32)(rgb)[0] * 299 + (INT32)(rgb)[1] * 587 + (INT32)(rgb)[2] * 114) #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) #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 */ /* 1 (bit) conversions */
/* ------------------- */ /* ------------------- */