mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-11-12 20:36:15 +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 ****************************************
|
||||||
dnl *** GLib POLL* compatibility defines ***
|
dnl *** GLib POLL* compatibility defines ***
|
||||||
dnl ****************************************
|
dnl ****************************************
|
||||||
GLIB_SYSDEFS([#include <sys/types.h>
|
GLIB_SYSDEFS(
|
||||||
#include <sys/poll.h>],
|
[#include <sys/types.h>
|
||||||
|
#include <sys/poll.h>],
|
||||||
POLLIN:1 POLLOUT:4 POLLPRI:2 POLLERR:8 POLLHUP:16 POLLNVAL:32,
|
POLLIN:1 POLLOUT:4 POLLPRI:2 POLLERR:8 POLLHUP:16 POLLNVAL:32,
|
||||||
glibconfig-sysdefs.h,
|
glibconfig-sysdefs.h,
|
||||||
=)
|
=)
|
||||||
|
@ -8,7 +8,7 @@
|
|||||||
#define TEST_PRIVATE_ROUNDS 5
|
#define TEST_PRIVATE_ROUNDS 5
|
||||||
|
|
||||||
void
|
void
|
||||||
test_mutexes ()
|
test_mutexes (void)
|
||||||
{
|
{
|
||||||
GMutex *mutex = NULL;
|
GMutex *mutex = NULL;
|
||||||
GCond *cond = NULL;
|
GCond *cond = NULL;
|
||||||
@ -128,7 +128,7 @@ wait_thread (double seconds)
|
|||||||
}
|
}
|
||||||
|
|
||||||
gpointer
|
gpointer
|
||||||
private_constructor ()
|
private_constructor (void)
|
||||||
{
|
{
|
||||||
gpointer *result = g_new (gpointer, 2);
|
gpointer *result = g_new (gpointer, 2);
|
||||||
result[0] = 0;
|
result[0] = 0;
|
||||||
@ -169,7 +169,7 @@ test_private_func (void *data)
|
|||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
test_private ()
|
test_private (void)
|
||||||
{
|
{
|
||||||
int i;
|
int i;
|
||||||
gpointer threads[TEST_PRIVATE_THREADS];
|
gpointer threads[TEST_PRIVATE_THREADS];
|
||||||
@ -185,7 +185,7 @@ test_private ()
|
|||||||
}
|
}
|
||||||
|
|
||||||
int
|
int
|
||||||
main ()
|
main (void)
|
||||||
{
|
{
|
||||||
test_mutexes ();
|
test_mutexes ();
|
||||||
|
|
||||||
|
@ -18,8 +18,17 @@
|
|||||||
*/
|
*/
|
||||||
#undef G_LOG_DOMAIN
|
#undef G_LOG_DOMAIN
|
||||||
|
|
||||||
|
#ifdef HAVE_CONFIG_H
|
||||||
|
#include <config.h>
|
||||||
|
#endif
|
||||||
|
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
|
||||||
|
#ifdef HAVE_UNISTD_H
|
||||||
|
#include <unistd.h>
|
||||||
|
#endif
|
||||||
|
|
||||||
#include "glib.h"
|
#include "glib.h"
|
||||||
|
|
||||||
int array[10000];
|
int array[10000];
|
||||||
|
Loading…
Reference in New Issue
Block a user