API: C generator improve symbol protection. 90/16290/2
authorOle Troan <ot@cisco.com>
Fri, 30 Nov 2018 07:34:11 +0000 (08:34 +0100)
committerNeale Ranns <nranns@cisco.com>
Mon, 3 Dec 2018 16:28:58 +0000 (16:28 +0000)
Change-Id: I9ef042c06c12892a2bbc23cc3bac6891c77e3feb
Signed-off-by: Ole Troan <ot@cisco.com>
src/tools/vppapigen/vppapigen_c.py

index 2a66ff3..f0fb008 100644 (file)
@@ -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