ObjFW  Diff

Differences From Artifact [0372a1b765]:

To Artifact [642d2b4756]:


20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35



36
37
38
39
40


41
42
43
44
45
46
47

#include "config.h"

#include <stdlib.h>
#include <math.h>
#include <time.h>

/* Work around __block being used by glibc */
#ifdef __GLIBC__
# undef __USE_XOPEN
#endif

#include "platform.h"

#ifdef HAVE_UNISTD_H
# include <unistd.h>



#endif

#ifdef OF_HAVE_SCHED_YIELD
# include <sched.h>
#endif



#ifdef OF_WII
# define BOOL OGC_BOOL
# define nanosleep ogc_nanosleep
# include <ogcsys.h>
# undef BOOL
# undef nanosleep







|
|
|
|
<
<
<
<

>
>
>





>
>







20
21
22
23
24
25
26
27
28
29
30




31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48

#include "config.h"

#include <stdlib.h>
#include <math.h>
#include <time.h>

#ifdef HAVE_UNISTD_H
# ifdef __GLIBC__
#  undef __USE_XOPEN	/* Needed to avoid old glibc using __block */
# endif




# include <unistd.h>
# ifdef __GLIBC__
#  define __USE_XOPEN 1
# endif
#endif

#ifdef OF_HAVE_SCHED_YIELD
# include <sched.h>
#endif

#include "platform.h"

#ifdef OF_WII
# define BOOL OGC_BOOL
# define nanosleep ogc_nanosleep
# include <ogcsys.h>
# undef BOOL
# undef nanosleep