diff options
author | Christophe Fergeau <cfergeau@redhat.com> | 2012-02-29 19:01:58 +0100 |
---|---|---|
committer | Alon Levy <alevy@redhat.com> | 2012-03-04 10:50:39 +0200 |
commit | 0f94e897b5226d91380f9f4838e0acb47d9b2219 (patch) | |
tree | 9409ed19b9ccd7ed40921c5b5f2ebcd965ee1e1a /common | |
parent | 32cd24be0a3cf1e842a2fbc440401a6bb259874f (diff) | |
download | spice-0f94e897b5226d91380f9f4838e0acb47d9b2219.tar.gz spice-0f94e897b5226d91380f9f4838e0acb47d9b2219.tar.xz spice-0f94e897b5226d91380f9f4838e0acb47d9b2219.zip |
mingw: don't try to redefine alloca
mingw already has a #define alloca __builtin_alloca so trying to
redefine it triggers a warning.
Diffstat (limited to 'common')
-rw-r--r-- | common/mem.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/common/mem.h b/common/mem.h index 980ea139..af89ba6f 100644 --- a/common/mem.h +++ b/common/mem.h @@ -41,7 +41,9 @@ extern "C" { #ifdef HAVE_ALLOCA_H # include <alloca.h> #elif defined __GNUC__ +#if !defined alloca # define alloca __builtin_alloca +#endif #elif defined _AIX # define alloca __alloca #elif defined _MSC_VER |