only add native_include_files if object based api is enabled (#5886)
authorThomas <thomas.maierbacher@rohde-schwarz.com>
Mon, 4 May 2020 19:27:50 +0000 (21:27 +0200)
committerGitHub <noreply@github.com>
Mon, 4 May 2020 19:27:50 +0000 (12:27 -0700)
commita875d247add6889d405aadf7cc35aae4b26a59eb
treecc2d578944e3cd1b16ec1d05c41b710b11dd9f24
parent6e9f5d98102043dcf4005b2dc3d13a43ba3bd562
only add native_include_files if object based api is enabled (#5886)

The native include files tag is intended to be used together with the object based api. A client which does not use the object based api should have no need to know about the additional include files needed for the object based api. The generated flatbuffers code without object api enabled should compile without the additional header files.
src/idl_gen_cpp.cpp