api: fix include_guard when path contains a plus
The path to VPP source might contain a '+' when building it with Yocto/OpenEmbedded. Type: fix Signed-off-by: Ruslan Babayev <ruslan@babayev.com> Change-Id: I205ac0de7d8726724af0e30f5b199391e05dc615
This commit is contained in:
@ -691,7 +691,7 @@ def gen_json_unified_header(parser, logger, j, io, name):
|
||||
orig_stdout = sys.stdout
|
||||
sys.stdout = io
|
||||
include_guard = "__included_%s" % (
|
||||
j.replace(".", "_").replace("/", "_").replace("-", "_"))
|
||||
j.replace(".", "_").replace("/", "_").replace("-", "_").replace("+", "_"))
|
||||
print("#ifndef %s" % include_guard)
|
||||
print("#define %s" % include_guard)
|
||||
print("")
|
||||
|
Reference in New Issue
Block a user