Rename poorly named identifier to avoid name conflicts.

Update issue 106
Status: FixedInGit
This commit is contained in:
Petteri Aimonen
2014-08-18 21:11:10 +03:00
parent 62b4a8ecaa
commit be0b9e047a
7 changed files with 66 additions and 28 deletions

View File

@@ -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: