aboutsummaryrefslogtreecommitdiffstats
path: root/lib/erl_interface/src/encode
diff options
context:
space:
mode:
authorSverker Eriksson <[email protected]>2019-04-23 17:28:53 +0200
committerSverker Eriksson <[email protected]>2019-04-23 17:28:53 +0200
commita7120cd744bcb2d4fd4c3cf9211243153d5999cb (patch)
treea2639adeeac9ec43387c46e27c49ada133aa7efb /lib/erl_interface/src/encode
parent053e4b191a5bf401bf4afb6787735a42b0dc6019 (diff)
downloadotp-a7120cd744bcb2d4fd4c3cf9211243153d5999cb.tar.gz
otp-a7120cd744bcb2d4fd4c3cf9211243153d5999cb.tar.bz2
otp-a7120cd744bcb2d4fd4c3cf9211243153d5999cb.zip
erl_interface: Fix C++ compile error
"export" is a reserved C++ keyword. lib/erl_interface/include/ei.h:290:9: error: expected ‘;’ after struct definition } export; ^ lib/erl_interface/include/ei.h:290:11: error: expected unqualified-id before ‘export’ } export; ^
Diffstat (limited to 'lib/erl_interface/src/encode')
-rw-r--r--lib/erl_interface/src/encode/encode_fun.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/erl_interface/src/encode/encode_fun.c b/lib/erl_interface/src/encode/encode_fun.c
index 38ba7c5b30..e29424f9f4 100644
--- a/lib/erl_interface/src/encode/encode_fun.c
+++ b/lib/erl_interface/src/encode/encode_fun.c
@@ -87,7 +87,7 @@ int ei_encode_fun(char *buf, int *index, const erlang_fun *p)
ix++;
if (ei_encode_atom_as(buf, &ix, p->module, ERLANG_UTF8, ERLANG_UTF8) < 0)
return -1;
- if (ei_encode_atom_as(buf, &ix, p->u.export.func, ERLANG_UTF8, ERLANG_UTF8) < 0)
+ if (ei_encode_atom_as(buf, &ix, p->u.exprt.func, ERLANG_UTF8, ERLANG_UTF8) < 0)
return -1;
if (ei_encode_long(buf, &ix, p->arity) < 0)
return -1;