Skip to content

Commit 23711d7

Browse files
committed
Print exported attribute in expr2c
1 parent c99c2e4 commit 23711d7

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/ansi-c/expr2c.cpp

+5
Original file line numberDiff line numberDiff line change
@@ -2686,6 +2686,11 @@ std::string expr2ct::convert_code_decl(
26862686
dest+="static ";
26872687
else if(symbol->is_extern)
26882688
dest+="extern ";
2689+
else if(
2690+
symbol->is_exported && config.ansi_c.os == configt::ansi_ct::ost::OS_WIN)
2691+
{
2692+
dest += "__declspec(dllexport) ";
2693+
}
26892694

26902695
if(symbol->type.id()==ID_code &&
26912696
to_code_type(symbol->type).get_inlined())

0 commit comments

Comments
 (0)