aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOle Troan <ot@cisco.com>2018-11-30 08:34:11 +0100
committerNeale Ranns <nranns@cisco.com>2018-12-03 16:28:58 +0000
commit02143dffd4c7456966a5043283ab9f252567170b (patch)
treea4c8ff6974fb337ddd49a786a8ce5845c938a4ed
parent940f78fcf4e276cadef3f163d0493b74fc49755c (diff)
API: C generator improve symbol protection.
Change-Id: I9ef042c06c12892a2bbc23cc3bac6891c77e3feb Signed-off-by: Ole Troan <ot@cisco.com>
-rw-r--r--src/tools/vppapigen/vppapigen_c.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/tools/vppapigen/vppapigen_c.py b/src/tools/vppapigen/vppapigen_c.py
index 2a66ff3159e..f0fb00831c3 100644
--- a/src/tools/vppapigen/vppapigen_c.py
+++ b/src/tools/vppapigen/vppapigen_c.py
@@ -85,8 +85,8 @@ def msg_name_crc_list(s, suffix):
def duplicate_wrapper_head(name):
- s = "#ifndef defined_%s\n" % name
- s += "#define defined_%s\n" % name
+ s = "#ifndef _vl_api_defined_%s\n" % name
+ s += "#define _vl_api_defined_%s\n" % name
return s