summaryrefslogtreecommitdiffstats
path: root/generator/nanopb_generator.py
diff options
context:
space:
mode:
authorPetteri Aimonen <jpa@git.mail.kapsi.fi>2012-06-12 17:51:08 +0300
committerPetteri Aimonen <jpa@git.mail.kapsi.fi>2012-06-12 17:51:08 +0300
commit5af2c97ecd71af46cc45baefb7a7041b5b904efc (patch)
treed4d54ca5bd51e2135730adc252baed081279331a /generator/nanopb_generator.py
parentfeddc0115ce72b49688dc7006ca3027d958d6e99 (diff)
Add descriptor.proto into the #include exclusion list
Diffstat (limited to 'generator/nanopb_generator.py')
-rw-r--r--generator/nanopb_generator.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/generator/nanopb_generator.py b/generator/nanopb_generator.py
index 39153839..d41efb88 100644
--- a/generator/nanopb_generator.py
+++ b/generator/nanopb_generator.py
@@ -442,7 +442,7 @@ if __name__ == '__main__':
# List of .proto files that should not be included in the C header file
# even if they are mentioned in the source .proto.
- excludes = ['nanopb.proto']
+ excludes = ['nanopb.proto', 'google/protobuf/descriptor.proto']
dependencies = [d for d in fdesc.file[0].dependency if d not in excludes]
header = open(headername, 'w')