mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-26 21:00:29 +00:00
Patch to support MSVC correctly, contributed by Morten Ofstad!
llvm-svn: 17213
This commit is contained in:
parent
259f362897
commit
3286872a18
@ -24,7 +24,8 @@
|
||||
* (notably FreeBSD) defined alloca() there.
|
||||
*/
|
||||
#ifdef _MSC_VER
|
||||
/* noop on Visual C++ */
|
||||
#include <malloc.h>
|
||||
#define alloca _alloca
|
||||
#elif defined(HAVE_ALLOCA_H)
|
||||
#include <alloca.h>
|
||||
#elif defined(__MINGW_H) && defined(HAVE_MALLOC_H)
|
||||
|
Loading…
Reference in New Issue
Block a user