aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Hsieh <andrewhsieh@google.com>2015-03-05 13:00:17 +0800
committerAndrew Hsieh <andrewhsieh@google.com>2015-03-24 11:56:33 -0700
commita387c5e6192bb208731edfa8af164aa817cc14c1 (patch)
treea05f212aa363c86f590d646fe62eef6345517724
parent48604b20a5daaa114c9cad67f1811c321ec0d947 (diff)
downloadllvm-a387c5e6192bb208731edfa8af164aa817cc14c1.tar.gz
[ndk] Undefine macros in mingw's header
eg. fseeko is defined as fseeko64 mingw/include/stdio.h and collide with other member in enum Func of the same name
-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;