source: trunk/config.tests/unix/glib/glib.cpp@ 203

Last change on this file since 203 was 2, checked in by Dmitry A. Kuminov, 16 years ago

Initially imported qt-all-opensource-src-4.5.1 from Trolltech.

File size: 345 bytes
Line 
1typedef struct _GMainContext GMainContext;
2
3#include <glib.h>
4
5int main(int, char **)
6{
7 GMainContext *context;
8 GSource *source;
9 GPollFD *pollfd;
10 if (!g_thread_supported())
11 g_thread_init(NULL);
12 context = g_main_context_default();
13 source = g_source_new(0, 0);
14 g_source_add_poll(source, pollfd);
15 return 0;
16}
Note: See TracBrowser for help on using the repository browser.