aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRuslan Babayev <ruslan@babayev.com>2019-10-31 01:37:50 -0700
committerRuslan Babayev <ruslan@babayev.com>2020-05-01 17:06:52 -0700
commit7f286f720d6fe2115423212dda6af66dd810691d (patch)
treee95269c1c9db7bcf64cc0667be0fe0ce86314a2b
parent073d74d0ba9a6110ed73a38df668c47ceb3ca776 (diff)
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
-rwxr-xr-xsrc/vpp-api/vapi/vapi_c_gen.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/vpp-api/vapi/vapi_c_gen.py b/src/vpp-api/vapi/vapi_c_gen.py
index a881ad578ae..1fae5b3310a 100755
--- a/src/vpp-api/vapi/vapi_c_gen.py
+++ b/src/vpp-api/vapi/vapi_c_gen.py
@@ -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("")