Commit 739f1233 authored by Hugo Beauzée-Luyssen's avatar Hugo Beauzée-Luyssen Committed by Jean-Baptiste Kempf

thread: Implement vlc_GetCPUCount for android.

Signed-off-by: default avatarJean-Baptiste Kempf <jb@videolan.org>
parent c34cf2f3
...@@ -1204,7 +1204,8 @@ unsigned vlc_GetCPUCount(void) ...@@ -1204,7 +1204,8 @@ unsigned vlc_GetCPUCount(void)
count = sysconf (_SC_NPROCESSORS_ONLN); count = sysconf (_SC_NPROCESSORS_ONLN);
free (cpulist); free (cpulist);
return count ? count : 1; return count ? count : 1;
#elif defined(__ANDROID__)
return sysconf(_SC_NPROCESSORS_CONF);
#else #else
# warning "vlc_GetCPUCount is not implemented for your platform" # warning "vlc_GetCPUCount is not implemented for your platform"
return 1; return 1;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment