[llvm-commits] CVS: llvm/include/llvm/Config/alloca.h

Reid Spencer reid at x10sys.com
Wed Sep 22 08:28:42 PDT 2004



Changes in directory llvm/include/llvm/Config:

alloca.h updated: 1.5 -> 1.6
---
Log message:

The alloca function, strangely enough, is found in the malloc.h header file
on MINGW platform. Provide an #elseif case to #include malloc.h for this 
platform if malloc.h is found.

Patch provided by Henrik Bach. Thanks Henrik!


---
Diffs of the changes:  (+2 -0)

Index: llvm/include/llvm/Config/alloca.h
diff -u llvm/include/llvm/Config/alloca.h:1.5 llvm/include/llvm/Config/alloca.h:1.6
--- llvm/include/llvm/Config/alloca.h:1.5	Wed Sep  1 17:55:34 2004
+++ llvm/include/llvm/Config/alloca.h	Wed Sep 22 10:28:32 2004
@@ -27,6 +27,8 @@
 /* noop on Visual C++ */
 #elif defined(HAVE_ALLOCA_H)
 #include <alloca.h>
+#elif defined(__MINGW_H) && defined(HAVE_MALLOC_H)
+#include <malloc.h>
 #elif !defined(__GNUC__)
 #	ifdef _AIX
  #		pragma alloca






More information about the llvm-commits mailing list