[llvm-commits] CVS: llvm/test/Programs/MultiSource/Benchmarks/MallocBench/gs/malloc_.h

Chris Lattner lattner at cs.uiuc.edu
Tue Jul 20 09:58:23 PDT 2004



Changes in directory llvm/test/Programs/MultiSource/Benchmarks/MallocBench/gs:

malloc_.h updated: 1.3 -> 1.4

---
Log message:

stdlib is, well, a standard


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

Index: llvm/test/Programs/MultiSource/Benchmarks/MallocBench/gs/malloc_.h
diff -u llvm/test/Programs/MultiSource/Benchmarks/MallocBench/gs/malloc_.h:1.3 llvm/test/Programs/MultiSource/Benchmarks/MallocBench/gs/malloc_.h:1.4
--- llvm/test/Programs/MultiSource/Benchmarks/MallocBench/gs/malloc_.h:1.3	Tue Jul 20 11:12:32 2004
+++ llvm/test/Programs/MultiSource/Benchmarks/MallocBench/gs/malloc_.h	Tue Jul 20 11:58:13 2004
@@ -20,21 +20,13 @@
 /* malloc_.h */
 /* Generic substitute for Unix malloc.h */
 
+#include <stdlib.h>
+
 #ifdef __MSDOS__
 #  include <alloc.h>
 #else
 #  ifdef VMS
      extern char *malloc();
      extern void free();
-#  else
-#    ifdef BSD4_2
-       extern char *malloc();
-#    else
-#      if defined(__FreeBSD__) || defined(__APPLE__)
-#        include <stdlib.h>
-#      else
-#        include <malloc.h>
-#      endif
-#    endif
 #  endif
 #endif





More information about the llvm-commits mailing list