Fixed missing __BEGIN_DECLS / __END_DECLS on MinGW

This commit is contained in:
Vasily Litvinov 2014-09-01 02:35:06 +04:00
parent 33680dd676
commit 62dc65e0e4

View File

@ -243,6 +243,12 @@ ifneq ($(android),)
ifeq ($(platform),macosx)
android-cflags += -Doff64_t=off_t -Dlseek64=lseek
endif
# on Windows (in MinGW-based build) there are neither __BEGIN_DECLS nor __END_DECLS
# defines; we don't want to patch every file that uses them, so we stub them in
# using CFLAGS mechanism
ifeq ($(platform),windows)
android-cflags += "-D__BEGIN_DECLS=extern \"C\" {" "-D__END_DECLS=}"
endif
luni-cpps := $(shell find $(luni-native) -name '*.cpp')