From: Manish Singh Date: Tue, 5 Jan 1999 20:29:49 +0000 (+0000) Subject: ditch whitespace before GLIB_SYSDEFS #includes, the # needs to be in X-Git-Url: http://git.openbox.org/?a=commitdiff_plain;h=228a8ffd85ccbc4cb2089f88dd858556d1682858;p=dana%2Fcg-glib.git ditch whitespace before GLIB_SYSDEFS #includes, the # needs to be in * configure.in: ditch whitespace before GLIB_SYSDEFS #includes, the # needs to be in column 1 * gthread/testgthread.c: cleanups * tests/node-test.c: #include unistd.h for exit() -Yosh --- diff --git a/configure.in b/configure.in index 5c13a3d0..901bb5ca 100644 --- a/configure.in +++ b/configure.in @@ -742,8 +742,9 @@ GLIB_IF_VAR_EQ(mutex_has_default, yes, dnl **************************************** dnl *** GLib POLL* compatibility defines *** dnl **************************************** -GLIB_SYSDEFS([#include - #include ], +GLIB_SYSDEFS( +[#include +#include ], POLLIN:1 POLLOUT:4 POLLPRI:2 POLLERR:8 POLLHUP:16 POLLNVAL:32, glibconfig-sysdefs.h, =) diff --git a/gthread/testgthread.c b/gthread/testgthread.c index b71116fe..c2149d46 100644 --- a/gthread/testgthread.c +++ b/gthread/testgthread.c @@ -8,7 +8,7 @@ #define TEST_PRIVATE_ROUNDS 5 void -test_mutexes () +test_mutexes (void) { GMutex *mutex = NULL; GCond *cond = NULL; @@ -128,7 +128,7 @@ wait_thread (double seconds) } gpointer -private_constructor () +private_constructor (void) { gpointer *result = g_new (gpointer, 2); result[0] = 0; @@ -169,7 +169,7 @@ test_private_func (void *data) } void -test_private () +test_private (void) { int i; gpointer threads[TEST_PRIVATE_THREADS]; @@ -185,7 +185,7 @@ test_private () } int -main () +main (void) { test_mutexes (); diff --git a/tests/node-test.c b/tests/node-test.c index d0044f70..682165f5 100644 --- a/tests/node-test.c +++ b/tests/node-test.c @@ -18,8 +18,17 @@ */ #undef G_LOG_DOMAIN +#ifdef HAVE_CONFIG_H +#include +#endif + #include #include + +#ifdef HAVE_UNISTD_H +#include +#endif + #include "glib.h" int array[10000];