Skip to content

Commit

Permalink
Print exported attribute in expr2c
Browse files Browse the repository at this point in the history
  • Loading branch information
reuk committed Dec 5, 2017
1 parent c99c2e4 commit 23711d7
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/ansi-c/expr2c.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2686,6 +2686,11 @@ std::string expr2ct::convert_code_decl(
dest+="static ";
else if(symbol->is_extern)
dest+="extern ";
else if(
symbol->is_exported && config.ansi_c.os == configt::ansi_ct::ost::OS_WIN)
{
dest += "__declspec(dllexport) ";
}

if(symbol->type.id()==ID_code &&
to_code_type(symbol->type).get_inlined())
Expand Down

0 comments on commit 23711d7

Please sign in to comment.