diff options
author | Sebastian Dröge <sebastian.droege@collabora.co.uk> | 2012-11-28 16:28:28 +0100 |
---|---|---|
committer | Sebastian Dröge <sebastian.droege@collabora.co.uk> | 2012-11-28 16:32:48 +0100 |
commit | cb0ed84d4022e0fba6aaa9e99e258d8d507a90e5 (patch) | |
tree | f2ff3fd4a189c8797eefbb974c9f91cf478ffc5b /glib/galloca.h | |
parent | 058fa6393e368a2134f18df3296c09eb33d8e951 (diff) | |
download | glib-cb0ed84d4022e0fba6aaa9e99e258d8d507a90e5.tar.gz |
Fix compilation on Android with the bionic C library
Diffstat (limited to 'glib/galloca.h')
-rw-r--r-- | glib/galloca.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/glib/galloca.h b/glib/galloca.h index 1ecdf65c0..a18a75cdd 100644 --- a/glib/galloca.h +++ b/glib/galloca.h @@ -33,7 +33,9 @@ #include <glib/gtypes.h> -#ifdef __GNUC__ +#if defined(__BIONIC__) && defined (GLIB_HAVE_ALLOCA_H) +# include <alloca.h> +#elif defined(__GNUC__) /* GCC does the right thing */ # undef alloca # define alloca(size) __builtin_alloca (size) |