aboutsummaryrefslogtreecommitdiffstats
path: root/include/llvm
diff options
context:
space:
mode:
authorStephen Hines <srhines@google.com>2014-09-30 02:31:30 -0700
committerStephen Hines <srhines@google.com>2014-09-30 02:31:30 -0700
commitf8e021ce4621688f8f57bf98302cba23f5d7e0f1 (patch)
treef5b8ae501c56315246a2841218b635afebcfce56 /include/llvm
parent8a95734f9813e11664344a198af8c9203451e684 (diff)
downloadexternal_llvm-f8e021ce4621688f8f57bf98302cba23f5d7e0f1.zip
external_llvm-f8e021ce4621688f8f57bf98302cba23f5d7e0f1.tar.gz
external_llvm-f8e021ce4621688f8f57bf98302cba23f5d7e0f1.tar.bz2
Undefined fseeko/ftello for Windows builds.
Bug: 14416410 These are "defined" when building under mingw, so they can't be used as identifiers in LLVM. Once we fix this in upstream, we can pull the patch back and revert this one. Change-Id: Ib576a9617ca685ab3625a2d2d66f652bcb7f2c3e
Diffstat (limited to 'include/llvm')
-rw-r--r--include/llvm/Target/TargetLibraryInfo.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/include/llvm/Target/TargetLibraryInfo.h b/include/llvm/Target/TargetLibraryInfo.h
index d4f9f23..93c9aa3 100644
--- a/include/llvm/Target/TargetLibraryInfo.h
+++ b/include/llvm/Target/TargetLibraryInfo.h
@@ -13,6 +13,17 @@
#include "llvm/ADT/DenseMap.h"
#include "llvm/Pass.h"
+// BEGIN ANDROID-SPECIFIC
+#ifdef WIN32
+#ifdef fseeko
+#undef fseeko
+#endif
+#ifdef ftello
+#undef ftello
+#endif
+#endif // WIN32
+// END ANDROID-SPECIFIC
+
namespace llvm {
class Triple;