[llvm-commits] [llvm] r42129 - /llvm/trunk/bindings/ocaml/llvm/llvm_ocaml.c

Gabor Greif ggreif at gmail.com
Wed Sep 19 02:29:59 PDT 2007


Author: ggreif
Date: Wed Sep 19 04:29:58 2007
New Revision: 42129

URL: http://llvm.org/viewvc/llvm-project?rev=42129&view=rev
Log:
include alloca.h if available. this helps Solaris, but intnat and uintnat types are still undefined, causing errors

Modified:
    llvm/trunk/bindings/ocaml/llvm/llvm_ocaml.c

Modified: llvm/trunk/bindings/ocaml/llvm/llvm_ocaml.c
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/bindings/ocaml/llvm/llvm_ocaml.c?rev=42129&r1=42128&r2=42129&view=diff

==============================================================================
--- llvm/trunk/bindings/ocaml/llvm/llvm_ocaml.c (original)
+++ llvm/trunk/bindings/ocaml/llvm/llvm_ocaml.c Wed Sep 19 04:29:58 2007
@@ -19,7 +19,11 @@
 #include "caml/alloc.h"
 #include "caml/mlvalues.h"
 #include "caml/memory.h"
-#include "stdio.h"
+#include "llvm/Config/config.h" 
+#include <stdio.h>
+#ifdef HAVE_ALLOCA_H
+#include <alloca.h>
+#endif
 
 
 /*===-- Modules -----------------------------------------------------------===*/





More information about the llvm-commits mailing list