#include <unistd.h> /* for isatty() */
#endif
+#ifdef _MSC_VER
+static inline long int
+lround (double x)
+{
+ if (x >= 0)
+ return floor (x + 0.5);
+ else
+ return ceil (x - 0.5);
+}
+#endif
+
#define MIN(a,b) ((a) < (b) ? (a) : (b))
#define CELL_W 8
biimage_t (unsigned int width, unsigned int height) :
width (width),
height (height),
+ bg (0), fg (0), unicolor (true),
data ((uint8_t *) malloc (sizeof (data[0]) * width * height)) {}
~biimage_t (void)
{ free (data); }