aboutsummaryrefslogtreecommitdiffstats
path: root/generator/nanopb_generator.py
diff options
context:
space:
mode:
authorPetteri Aimonen <jpa@git.mail.kapsi.fi>2014-08-18 21:11:10 +0300
committerPetteri Aimonen <jpa@git.mail.kapsi.fi>2014-08-18 21:11:10 +0300
commitbe0b9e047a007685aa10a268f9bf856e9a52ef58 (patch)
tree81ac0c52f93b5ece781c3c1a0c9821ffc5725ebc /generator/nanopb_generator.py
parent62b4a8ecaac45ce62cc93e09261d60e6ceade1a9 (diff)
Rename poorly named identifier to avoid name conflicts.
Update issue 106 Status: FixedInGit
Diffstat (limited to 'generator/nanopb_generator.py')
-rwxr-xr-xgenerator/nanopb_generator.py4
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: