diff options
author | Petteri Aimonen <jpa@git.mail.kapsi.fi> | 2014-08-18 21:11:10 +0300 |
---|---|---|
committer | Petteri Aimonen <jpa@git.mail.kapsi.fi> | 2014-08-18 21:11:10 +0300 |
commit | be0b9e047a007685aa10a268f9bf856e9a52ef58 (patch) | |
tree | 81ac0c52f93b5ece781c3c1a0c9821ffc5725ebc /generator | |
parent | 62b4a8ecaac45ce62cc93e09261d60e6ceade1a9 (diff) |
Rename poorly named identifier to avoid name conflicts.
Update issue 106
Status: FixedInGit
Diffstat (limited to 'generator')
-rwxr-xr-x | generator/nanopb_generator.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/generator/nanopb_generator.py b/generator/nanopb_generator.py index 80fb93ca..50108148 100755 --- a/generator/nanopb_generator.py +++ b/generator/nanopb_generator.py @@ -768,8 +768,8 @@ def generate_header(dependencies, headername, enums, messages, extensions, optio yield '/* Generated by %s at %s. */\n\n' % (nanopb_version, time.asctime()) symbol = make_identifier(headername) - yield '#ifndef _PB_%s_\n' % symbol - yield '#define _PB_%s_\n' % symbol + yield '#ifndef PB_%s_INCLUDED\n' % symbol + yield '#define PB_%s_INCLUDED\n' % symbol try: yield options.libformat % ('pb.h') except TypeError: |