Skip to content

Commit fd7c0a8

Browse files
committed
sys/sysinfo.h is specific ot Linux, not gcc
1 parent 67322c0 commit fd7c0a8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Sources/Core/ConcurrentDispatch.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838
#ifndef _MSC_VER
3939
#include <unistd.h>
4040
#endif
41-
#if defined(__GNUC__)
41+
#if defined(__linux__)
4242
#include <sys/sysinfo.h>
4343
#endif
4444
#endif
@@ -67,7 +67,7 @@ static int GetNumCores() {
6767
if(count < 1) { count = 1; }
6868
}
6969
return count;
70-
#elif defined(__GNUC__)
70+
#elif defined(__linux__)
7171
return get_nprocs();
7272
#else
7373
return sysconf(_SC_NPROCESSORS_ONLN);

0 commit comments

Comments
 (0)