mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-11-10 03:16:17 +01:00
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
This commit is contained in:
parent
6476df5865
commit
228a8ffd85
@ -742,8 +742,9 @@ GLIB_IF_VAR_EQ(mutex_has_default, yes,
|
||||
dnl ****************************************
|
||||
dnl *** GLib POLL* compatibility defines ***
|
||||
dnl ****************************************
|
||||
GLIB_SYSDEFS([#include <sys/types.h>
|
||||
#include <sys/poll.h>],
|
||||
GLIB_SYSDEFS(
|
||||
[#include <sys/types.h>
|
||||
#include <sys/poll.h>],
|
||||
POLLIN:1 POLLOUT:4 POLLPRI:2 POLLERR:8 POLLHUP:16 POLLNVAL:32,
|
||||
glibconfig-sysdefs.h,
|
||||
=)
|
||||
|
@ -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 ();
|
||||
|
||||
|
@ -18,8 +18,17 @@
|
||||
*/
|
||||
#undef G_LOG_DOMAIN
|
||||
|
||||
#ifdef HAVE_CONFIG_H
|
||||
#include <config.h>
|
||||
#endif
|
||||
|
||||
#include <stdio.h>
|
||||
#include <string.h>
|
||||
|
||||
#ifdef HAVE_UNISTD_H
|
||||
#include <unistd.h>
|
||||
#endif
|
||||
|
||||
#include "glib.h"
|
||||
|
||||
int array[10000];
|
||||
|
Loading…
Reference in New Issue
Block a user