commit | 02143dffd4c7456966a5043283ab9f252567170b | [log] [tgz] |
---|---|---|
author | Ole Troan <ot@cisco.com> | Fri Nov 30 08:34:11 2018 +0100 |
committer | Neale Ranns <nranns@cisco.com> | Mon Dec 03 16:28:58 2018 +0000 |
tree | a4c8ff6974fb337ddd49a786a8ce5845c938a4ed | |
parent | 940f78fcf4e276cadef3f163d0493b74fc49755c [diff] [blame] |
API: C generator improve symbol protection. Change-Id: I9ef042c06c12892a2bbc23cc3bac6891c77e3feb Signed-off-by: Ole Troan <ot@cisco.com>
diff --git a/src/tools/vppapigen/vppapigen_c.py b/src/tools/vppapigen/vppapigen_c.py index 2a66ff3..f0fb008 100644 --- a/src/tools/vppapigen/vppapigen_c.py +++ b/src/tools/vppapigen/vppapigen_c.py
@@ -85,8 +85,8 @@ 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