diff options
author | Derek Bailey <derekbailey@google.com> | 2023-05-17 21:13:16 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-05-17 21:13:16 -0700 |
commit | b67f1ad6d055ecb526533df814b6902fc96cc676 (patch) | |
tree | 542f97eb90a4664712ca86db43b9aee7701fadc7 /src | |
parent | ae6753684ec9e958251035836eb42fafcfe800fc (diff) | |
download | flatbuffers-b67f1ad6d055ecb526533df814b6902fc96cc676.tar.gz flatbuffers-b67f1ad6d055ecb526533df814b6902fc96cc676.tar.bz2 flatbuffers-b67f1ad6d055ecb526533df814b6902fc96cc676.zip |
don't emit flatbuffers include in bfbs generated output (#7968)
Diffstat (limited to 'src')
-rw-r--r-- | src/idl_gen_cpp.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/idl_gen_cpp.cpp b/src/idl_gen_cpp.cpp index ff8382be..b602724f 100644 --- a/src/idl_gen_cpp.cpp +++ b/src/idl_gen_cpp.cpp @@ -377,10 +377,8 @@ class CppGenerator : public BaseGenerator { code_ += "#pragma clang system_header\n\n"; } - code_ += "#include \"flatbuffers/flatbuffers.h\""; - code_ += ""; - GenFlatbuffersVersionCheck(); - code_ += ""; + code_ += "#include <cstddef>"; + code_ += "#include <cstdint>"; SetNameSpace(struct_def.defined_namespace); auto name = Name(struct_def); |