diff --git a/apps/sft/include/sft/random.hpp b/apps/sft/include/sft/random.hpp index e184da629..3a3be8bbc 100644 --- a/apps/sft/include/sft/random.hpp +++ b/apps/sft/include/sft/random.hpp @@ -54,7 +54,7 @@ struct Random }; } -#elif (__GNUC__) && __GNUC__ > 3 && __GNUC_MINOR__ > 1 +#elif (__GNUC__) && __GNUC__ > 3 && __GNUC_MINOR__ > 1 && !defined(__ANDROID__) # if defined (__cplusplus) && __cplusplus > 201100L # include diff --git a/modules/ml/src/octave.cpp b/modules/ml/src/octave.cpp index d9a2db3b1..bf37ba978 100644 --- a/modules/ml/src/octave.cpp +++ b/modules/ml/src/octave.cpp @@ -64,7 +64,7 @@ struct Random }; } -#elif (__GNUC__) && __GNUC__ > 3 && __GNUC_MINOR__ > 1 +#elif (__GNUC__) && __GNUC__ > 3 && __GNUC_MINOR__ > 1 && !defined(__ANDROID__) # if defined (__cplusplus) && __cplusplus > 201100L # include