OSDN Git Service

Prepare for the removal of HAVE_MALLOC_H from AndroidConfig.h.
authorElliott Hughes <enh@google.com>
Wed, 8 Jul 2015 04:00:59 +0000 (21:00 -0700)
committerElliott Hughes <enh@google.com>
Wed, 8 Jul 2015 04:00:59 +0000 (21:00 -0700)
The device config.h is a good cleanup; the host side doesn't work
as well because of Mac OS, but it's no worse than the existing Mac OS
hacks.

Change-Id: I7a9dc089f03ae992c7463866a8b6c383ba0437e3

device/include/llvm/Config/config.h
host/include/llvm/Config/config.h

index ac58972..1798b90 100644 (file)
 #define HAVE_MALLINFO 1
 
 /* Define to 1 if you have the <malloc.h> header file. */
-//#define HAVE_MALLOC_H 1 /* Defined by AndroidConfig.h */
+#define HAVE_MALLOC_H 1
 
 /* Define to 1 if you have the <malloc/malloc.h> header file. */
 /* #undef HAVE_MALLOC_MALLOC_H */
index cb3d4a3..a1978a8 100644 (file)
 #endif
 
 /* Define to 1 if you have the <malloc.h> header file. */
-/* #define HAVE_MALLOC_H 1 */ /* Defined by AndroidConfig.h */
+#if !defined(__APPLE__)
+#define HAVE_MALLOC_H 1
+#else
+/* #undef HAVE_MALLOC_H */
+#endif
 
 /* Define to 1 if you have the <malloc/malloc.h> header file. */
 /* #undef HAVE_MALLOC_MALLOC_H */