[llvm-commits] CVS: llvm-test/MultiSource/Applications/obsequi/utils.c utils.h

Chris Lattner lattner at cs.uiuc.edu
Sat Mar 4 13:27:45 PST 2006



Changes in directory llvm-test/MultiSource/Applications/obsequi:

utils.c updated: 1.1 -> 1.2
utils.h updated: 1.3 -> 1.4
---
Log message:

Portability fixes


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

 utils.c |    2 ++
 utils.h |    5 -----
 2 files changed, 2 insertions(+), 5 deletions(-)


Index: llvm-test/MultiSource/Applications/obsequi/utils.c
diff -u llvm-test/MultiSource/Applications/obsequi/utils.c:1.1 llvm-test/MultiSource/Applications/obsequi/utils.c:1.2
--- llvm-test/MultiSource/Applications/obsequi/utils.c:1.1	Tue May 11 14:34:13 2004
+++ llvm-test/MultiSource/Applications/obsequi/utils.c	Sat Mar  4 15:27:33 2006
@@ -102,6 +102,7 @@
 // This function stores the string created from FORMAT and the
 //   following args to the end of the string STR.
 //========================================================
+#if 0
 extern s32bit
 asprintf_my(char **str, s32bit offset, const char *format, ... )
 {
@@ -127,6 +128,7 @@
   va_end (ap);
   return nchars;
 }
+#endif
 
 
 //########################################################


Index: llvm-test/MultiSource/Applications/obsequi/utils.h
diff -u llvm-test/MultiSource/Applications/obsequi/utils.h:1.3 llvm-test/MultiSource/Applications/obsequi/utils.h:1.4
--- llvm-test/MultiSource/Applications/obsequi/utils.h:1.3	Wed Jun 23 09:23:34 2004
+++ llvm-test/MultiSource/Applications/obsequi/utils.h	Sat Mar  4 15:27:33 2006
@@ -7,13 +7,8 @@
 #define _GNU_SOURCE  //Need this so that __USE_GNU is defined
 #endif
 
-#include <features.h>
-
 #include <stdlib.h>
 #include <stdio.h>
-#if !defined(__FreeBSD__)
-#  include <malloc.h>
-#endif
 #include <string.h>
 
 






More information about the llvm-commits mailing list