[Mesa-dev] [PATCH 5/5] util: remove unneeded Android ifdef from ralloc.c

Ian Romanick idr at freedesktop.org
Tue May 23 22:13:17 UTC 2017


As long as it still builds, this change looks good to me.

Reviewed-by: Ian Romanick <ian.d.romanick at intel.com>

On 05/23/2017 12:49 PM, Rob Herring wrote:
> SIZE_MAX has been defined in stdint.h on Android since 2013, so this ifdef
> is no longer needed.
> 
> Signed-off-by: Rob Herring <robh at kernel.org>
> ---
>  src/util/ralloc.c | 5 -----
>  1 file changed, 5 deletions(-)
> 
> diff --git a/src/util/ralloc.c b/src/util/ralloc.c
> index 7bf192e0db78..cf2662f1db6e 100644
> --- a/src/util/ralloc.c
> +++ b/src/util/ralloc.c
> @@ -28,11 +28,6 @@
>  #include <string.h>
>  #include <stdint.h>
>  
> -/* Android defines SIZE_MAX in limits.h, instead of the standard stdint.h */
> -#ifdef ANDROID
> -#include <limits.h>
> -#endif
> -
>  /* Some versions of MinGW are missing _vscprintf's declaration, although they
>   * still provide the symbol in the import library. */
>  #ifdef __MINGW32__
> 



More information about the mesa-dev mailing list