summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFelipe Magno de Almeida <felipe@expertise.dev>2020-05-04 20:05:22 -0300
committerFelipe Magno de Almeida <felipe@expertise.dev>2020-05-04 22:11:45 -0300
commit9669af729814560b1773a9c58f8db4d811db917c (patch)
tree54214c521443391c0f8d19dd980154d46ebebcd3
parentdb2fe9bfcc86630966dc5fddbbba5f1e7a7d9160 (diff)
Remove wrongful use of pthread.h include and windows.h include
-rw-r--r--src/lib/eina/eina_cpu.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/src/lib/eina/eina_cpu.c b/src/lib/eina/eina_cpu.c
index 366d5d871f..f1896bdba6 100644
--- a/src/lib/eina/eina_cpu.c
+++ b/src/lib/eina/eina_cpu.c
@@ -22,22 +22,21 @@
22 22
23#ifdef EFL_HAVE_THREADS 23#ifdef EFL_HAVE_THREADS
24# ifdef _WIN32 24# ifdef _WIN32
25# ifndef WIN32_LEAN_AND_MEAN 25# include <evil_windows.h>
26# define WIN32_LEAN_AND_MEAN
27# endif
28# include <windows.h>
29# elif defined (__sun) || defined(__GNU__) || defined(__CYGWIN__) 26# elif defined (__sun) || defined(__GNU__) || defined(__CYGWIN__)
30# include <unistd.h> 27# include <unistd.h>
28# include <pthread.h>
31# elif defined (__FreeBSD__) || defined (__OpenBSD__) || \ 29# elif defined (__FreeBSD__) || defined (__OpenBSD__) || \
32 defined (__NetBSD__) || defined (__DragonFly__) || defined (__MacOSX__) || \ 30 defined (__NetBSD__) || defined (__DragonFly__) || defined (__MacOSX__) || \
33 (defined (__MACH__) && defined (__APPLE__)) 31 (defined (__MACH__) && defined (__APPLE__))
34# include <unistd.h> 32# include <unistd.h>
35# include <sys/param.h> 33# include <sys/param.h>
36# include <sys/sysctl.h> 34# include <sys/sysctl.h>
35# include <pthread.h>
37# elif defined (__linux__) || defined(__GLIBC__) 36# elif defined (__linux__) || defined(__GLIBC__)
38# include <sched.h> 37# include <sched.h>
38# include <pthread.h>
39# endif 39# endif
40# include <pthread.h>
41 40
42# define TH_MAX 32 41# define TH_MAX 32
43#endif 42#endif