From f8e021ce4621688f8f57bf98302cba23f5d7e0f1 Mon Sep 17 00:00:00 2001 From: Stephen Hines Date: Tue, 30 Sep 2014 02:31:30 -0700 Subject: 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 --- include/llvm/Target/TargetLibraryInfo.h | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'include') 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; -- cgit v1.1