summaryrefslogtreecommitdiffstats
path: root/llvm/include/llvm/Config/malloc.h
diff options
context:
space:
mode:
Diffstat (limited to 'llvm/include/llvm/Config/malloc.h')
-rw-r--r--llvm/include/llvm/Config/malloc.h25
1 files changed, 25 insertions, 0 deletions
diff --git a/llvm/include/llvm/Config/malloc.h b/llvm/include/llvm/Config/malloc.h
new file mode 100644
index 00000000000..7d16a406705
--- /dev/null
+++ b/llvm/include/llvm/Config/malloc.h
@@ -0,0 +1,25 @@
+/*
+ * The LLVM Compiler Infrastructure
+ *
+ * This file was developed by the LLVM research group and is distributed under
+ * the University of Illinois Open Source License. See LICENSE.TXT for details.
+ *
+ ******************************************************************************
+ *
+ * Description:
+ * This header file includes the infamous malloc.h header file if the
+ * autoconf system has found it. It hides all of the autoconf details
+ * from the rest of the application source code.
+ */
+
+#ifndef _SUPPORT_MALLOC_H
+#define _SUPPORT_MALLOC_H
+
+#include "llvm/Config/config.h"
+
+#ifdef HAVE_MALLOC_H
+#include <malloc.h>
+#endif
+
+#endif
+
OpenPOWER on IntegriCloud