diff options
author | Brian Paul <brianp@vmware.com> | 2015-02-27 13:03:03 -0700 |
---|---|---|
committer | Brian Paul <brianp@vmware.com> | 2015-02-27 15:22:24 -0700 |
commit | 098e5bf3b37431af2a9156789cbc9534f0b70235 (patch) | |
tree | 3efdf2c7d8335702aa2646707e7dc088181af1ca /include/c99_alloca.h | |
parent | 943784bbcd3e44254fd5e9b27b917b49c37206fb (diff) |
c99_alloca.h: fix #include for MinGW
As with MSVC, include malloc.h but don't redefine alloca.
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=89364
Reviewed-by: José Fonseca <jfonseca@vmware.com>
Diffstat (limited to 'include/c99_alloca.h')
-rw-r--r-- | include/c99_alloca.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/c99_alloca.h b/include/c99_alloca.h index 6d96d063e4b..7a81c50e0d7 100644 --- a/include/c99_alloca.h +++ b/include/c99_alloca.h @@ -35,6 +35,10 @@ # define alloca _alloca +#elif defined(__MINGW32__) + +# include <malloc.h> + #else /* !defined(_MSC_VER) */ # include <alloca.h> |