mirror of
https://github.com/corda/corda.git
synced 2025-01-01 02:36:44 +00:00
Fixed missing __BEGIN_DECLS / __END_DECLS on MinGW
This commit is contained in:
parent
33680dd676
commit
62dc65e0e4
6
makefile
6
makefile
@ -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')
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user