aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--host/include/llvm/Config/config.h15
-rw-r--r--include/llvm/Config/llvm-platform-config.h2
2 files changed, 16 insertions, 1 deletions
diff --git a/host/include/llvm/Config/config.h b/host/include/llvm/Config/config.h
index c008ed2..aa090ba 100644
--- a/host/include/llvm/Config/config.h
+++ b/host/include/llvm/Config/config.h
@@ -288,7 +288,9 @@
#define HAVE_POWF 1
/* Define to 1 if you have the `pread' function. */
+#if !defined(_WIN32) && !defined(_WIN64)
#define HAVE_PREAD 1
+#endif
/* Define if libtool can extract symbol lists from object files. */
#define HAVE_PRELOADED_SYMBOLS 1
@@ -296,6 +298,8 @@
/* Define to have the %a format string */
#define HAVE_PRINTF_A 1
+#if !defined(_WIN32) && !defined(_WIN64)
+
/* Have pthread_getspecific */
#define HAVE_PTHREAD_GETSPECIFIC 1
@@ -308,6 +312,8 @@
/* Have pthread_rwlock_init */
#define HAVE_PTHREAD_RWLOCK_INIT 1
+#endif /* !defined(_WIN32) && !defined(_WIN64) */
+
/* Define to 1 if srand48/lrand48/drand48 exist in <stdlib.h> */
#define HAVE_RAND48 1
@@ -468,11 +474,20 @@
/* Define to 1 if you have the <valgrind/valgrind.h> header file. */
/* #undef HAVE_VALGRIND_VALGRIND_H */
+#if defined(_WIN32) || defined(_WIN64)
+/* Define to 1 if you have the <windows.h> header file. */
+#define HAVE_WINDOWS_H 1
+
+/* Define to 1 if you have the `writev' function. */
+/* #undef HAVE_WRITEV */
+
+#else
/* Define to 1 if you have the <windows.h> header file. */
/* #undef HAVE_WINDOWS_H */
/* Define to 1 if you have the `writev' function. */
#define HAVE_WRITEV 1
+#endif
/* Define if the xdot.py program is available */
/* #undef HAVE_XDOT_PY */
diff --git a/include/llvm/Config/llvm-platform-config.h b/include/llvm/Config/llvm-platform-config.h
index 3291fa8..8f4f19f 100644
--- a/include/llvm/Config/llvm-platform-config.h
+++ b/include/llvm/Config/llvm-platform-config.h
@@ -107,7 +107,7 @@
#define HAVE_LIBIMAGEHLP 1
/* Type of 1st arg on ELM Callback */
-#define WIN32_ELMCB_PCSTR PCSTR
+#define WIN32_ELMCB_PCSTR PSTR
#else /* Linux, Mac OS X, ... Unixish platform */