Fixed most compiler errors and warnings.

This commit is contained in:
Pietro Gagliardi 2016-04-19 23:58:36 -04:00
parent 6b6d6861c1
commit 78772ca62d
2 changed files with 2 additions and 1 deletions

View File

@ -736,7 +736,7 @@ static void addAttr(uiDrawTextLayout *layout, PangoAttribute *attr, intmax_t sta
// these attributes are only supported on 1.38 and higher; we need to support 1.36
// use dynamic linking to make them work at least on newer systems
// TODO warn programmers
staticPangoAttribute *(*newFGAlphaAttr)(guint16 alpha) = NULL;
static PangoAttribute *(*newFGAlphaAttr)(guint16 alpha) = NULL;
static gboolean tried138 = FALSE;
// note that we treat any error as "the 1.38 symbols aren't there" (and don't care if dlclose() failed)

View File

@ -6,6 +6,7 @@
// TODO make this unnecessary
#define _GNU_SOURCE
#include <math.h>
#include <dlfcn.h> // see drawtext.c
#include <gtk/gtk.h>
#include "../ui.h"
#include "../ui_unix.h"