Rename poorly named identifier to avoid name conflicts.
Update issue 106 Status: FixedInGit
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user