aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--include/llvm/Target/TargetLibraryInfo.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/llvm/Target/TargetLibraryInfo.h b/include/llvm/Target/TargetLibraryInfo.h
index 46f87b93b00..f9a196a492f 100644
--- a/include/llvm/Target/TargetLibraryInfo.h
+++ b/include/llvm/Target/TargetLibraryInfo.h
@@ -13,6 +13,12 @@
#include "llvm/ADT/DenseMap.h"
#include "llvm/Pass.h"
+// Undefined the following defined in mingw/include/stdio.h, etc
+#undef fseeko
+#undef ftello
+#undef fstat
+#undef stat
+
namespace llvm {
class Triple;