--- a/lib/prefs.cpp
+++ b/lib/prefs.cpp
@@ -224,7 +224,7 @@
     max_bytes_sec_down = 0;
     max_bytes_sec_up = 0;
     max_ncpus = 0;
-#ifdef ANDROID
+#ifdef __ANDROID__
     max_ncpus_pct = 50;
 #else
     max_ncpus_pct = 0;
