summaryrefslogtreecommitdiffstats
path: root/config.tests/unix/glib/glib.cpp
blob: 16b787d2faee5fe944c5d308e587836c0197e3d6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
typedef struct _GMainContext GMainContext;

#include <glib.h>

int main(int, char **)
{
    GMainContext *context;
    GSource *source;
    GPollFD *pollfd;
    if (!g_thread_supported())
        g_thread_init(NULL);
    context = g_main_context_default();
    source = g_source_new(0, 0);
    g_source_add_poll(source, pollfd);
    return 0;
}