Fix compilation with clang

This commit is contained in:
Kovid Goyal 2017-09-30 11:56:30 +05:30
parent 2909fddaa2
commit b5b9a7ba6d
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -212,21 +212,15 @@ draw_cells_impl(ssize_t vao_idx, GLfloat xstart, GLfloat ystart, GLfloat dx, GLf
size_t sz;
void *address;
bool inverted = screen_invert_colors(screen);
#define int GLint
#define float GLfloat
#define uint GLuint
struct CellRenderData {
float xstart, ystart, dx, dy, sprite_dx, sprite_dy;
GLfloat xstart, ystart, dx, dy, sprite_dx, sprite_dy;
uint default_fg, default_bg, highlight_fg, highlight_bg, cursor_color, url_color;
GLuint default_fg, default_bg, highlight_fg, highlight_bg, cursor_color, url_color;
int color1, color2;
GLint color1, color2;
uint xnum, ynum, cursor_x, cursor_y, cursor_w, url_xl, url_yl, url_xr, url_yr;
GLuint xnum, ynum, cursor_x, cursor_y, cursor_w, url_xl, url_yl, url_xr, url_yr;
};
#undef int
#undef float
#undef uint
enum { cell_data_buffer, selection_buffer, uniform_buffer };
static struct CellRenderData *rd;