am 999fd4ea: Merge "Also -DWIN32 to keep llvm building."

* commit '999fd4ea850b494f38ac23195ad5c2ee0b9486a2':
  Also -DWIN32 to keep llvm building.
This commit is contained in:
Elliott Hughes 2015-08-20 18:18:50 +00:00 committed by Android Git Automerger
commit 896d0ee2cf
1 changed files with 3 additions and 0 deletions

View File

@ -37,6 +37,9 @@ $(combo_2nd_arch_prefix)HOST_GLOBAL_CFLAGS += -D__USE_MINGW_ANSI_STDIO=1
$(combo_2nd_arch_prefix)HOST_GLOBAL_CFLAGS += -D_WIN32_WINNT=0x0500
# Get 64-bit off_t and related functions.
$(combo_2nd_arch_prefix)HOST_GLOBAL_CFLAGS += -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE=1
# An Android-specific hack in llvm currently uses WIN32 rather than _WIN32.
# Until we know whether there are more of these, unconditionally define WIN32.
$(combo_2nd_arch_prefix)HOST_GLOBAL_CFLAGS += -DWIN32
$(combo_2nd_arch_prefix)HOST_CC := $(TOOLS_PREFIX)gcc$(TOOLS_EXE_SUFFIX)
$(combo_2nd_arch_prefix)HOST_CXX := $(TOOLS_PREFIX)g++$(TOOLS_EXE_SUFFIX)