Skip to content

Commit 5cd0f2f

Browse files
authored
Merge pull request diffblue#1659 from reuk/reuk/jmp_buf-sym
dump_c fixes
2 parents e324de6 + bf4d2c5 commit 5cd0f2f

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
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())

src/goto-programs/system_library_symbols.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ void system_library_symbolst::init_system_library_map()
105105
// setjmp.h
106106
std::list<irep_idt> setjmp_syms=
107107
{
108-
"_longjmp", "_setjmp", "longjmp", "longjmperror", "setjmp",
108+
"_longjmp", "_setjmp", "jmp_buf", "longjmp", "longjmperror", "setjmp",
109109
"siglongjmp", "sigsetjmp"
110110
};
111111
add_to_system_library("setjmp.h", setjmp_syms);

0 commit comments

Comments
 (0)